Skip to main content
Table of Contents

TTMSFNCDataGridHeaderGroup Class

A column chip displayed in the header visual grouping zone.

API unit family: TMSFNCDataGrid

Syntax

GeneratedPascalC++
TTMSFNCDataGridHeaderGroup = class
class PASCALIMPLEMENTATION TTMSFNCDataGridHeaderGroup : public System::TObject

Remarks

Chips are created and owned by the grid when a column is dropped into the zone or when grouping is applied; never create or free them yourself. They are passed to TTMSFNCCustomDataGrid.OnCustomizeHeaderGroup, TTMSFNCCustomDataGrid.OnBeforeDrawHeaderGroup and TTMSFNCCustomDataGrid.OnAfterDrawHeaderGroup, and are listed in TTMSFNCCustomDataGrid.HeaderGroups.

A chip shows the grouped column's caption, a close indicator and, when the column is sorted, a sort indicator (with a priority number when several columns are sorted).

Properties

Name Description
Column Zero-based index of the grouped column this chip represents.
Layout Cell layout used to render this chip: fill, font, stroke and text alignment.
Level Zero-based nesting level of this chip in the visual grouping zone (0 = outermost row of chips). At most three levels (0 to 2) are used.
Text Caption displayed on the chip; by default the header text of the grouped column.

Methods

Name Description
Draw Renders this chip onto the supplied graphics surface.

Used by