Table of Contents

TTMSFNCDataGridDataGroupingOptions Class

Design-time grouping defaults: summary rows, merged headers, column hiding, calculation format, and AutoSort.

API unit family: TMSFNCDataGridData Inherits from: TPersistent

Syntax

TTMSFNCDataGridDataGroupingOptions = class(TPersistent)

Properties

Name Description
AutoSort When True (default), data rows within each group are sorted by the grouping column before the group header is inserted.
CalculationFormat Delphi format string used to format summary calculation results. Leave empty to use the default number format.
CalculationFormatType Numeric type used when formatting summary results: integer (gcfNumber) or floating-point (gcfFloat). Default is gcfNumber.
HeaderHeight Height in logical pixels of auto-inserted group header rows. Leave at 0 to use the default row height.
HideColumns When True, the grouped columns are hidden after grouping so only the group header labels are visible. Default is False.
MergeDelimiter Delimiter string inserted between group key values when multiple columns are grouped at the same level. Empty by default (values are concatenated without separator).
MergeHeader When True (default), the group header cell spans all grouped columns (merged). Set to False to show the group value only in its own column cell.
MergeSummary When True, summary cells are merged across all grouped columns. Default is False.
Summary When True (default), a summary row is appended below each group to display column aggregates.
SummaryHeight Height in logical pixels of auto-inserted group summary rows. Leave at 0 to use the default row height.
SummaryInHeader When True, summary calculation results are shown inside the group header row instead of in a separate summary row below the group. Default is False.
UseFirstRowAsHeader When True (default), the first data row of each group is promoted to be the group header (its content becomes the group label). Set to False to generate a synthetic header row.

Used by