Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomGridTableItem.GroupIndex Property

Specifies the group index of the item (column).

#Declaration

Delphi
property GroupIndex: Integer read; write; default -1;

#Property Value

Type
Integer

#Remarks

Grouping is only implemented in Table Views and Banded Table Views. Use the GroupIndex property to group data by the View’s current column. If GroupIndex is set to -1, then data is not grouped by the column. Otherwise, GroupIndex specifies the position of the column amongst the other group columns.

To control the visibility state of an item (column) within a View, use the column’s Visible property.

To prevent an end-user from grouping/ungrouping data by the column,

The TcxDataControllerGroups class implements grouping operations on data in a data controller. You can address a specific group by the index of the row it contains and then get the summary values calculated against this group via TcxDataSummary.GroupSummaryValues, for instance. You can access TcxDataControllerGroups class functionality via the View’s DataController.Groups object.

The default value of the GroupIndex property is -1.

See Also