TcxDataControllerGroups.ItemGroupIndex Property
Returns the group index of the item at a specified position.
Declaration
property ItemGroupIndex[ItemIndex: Integer]: Integer read;
Property Value
Type |
---|
Integer |
Remarks
The ItemIndex parameter identifies the position of an item within the collection of all items to which it belongs. The ItemGroupIndex property returns the item group index. If the ItemIndex parameter does not specify the grouping item, ItemGroupIndex returns -1. If the ItemIndex parameter addresses a grouping item, the returned value is within the range from 0 to (GroupingItemCount - 1).
If grid data is displayed by using the grid view, the ItemIndex parameter represents a value of the Index property. And the returned value is defined via the GroupIndex property.
To obtain the grouping item position within the collection of all items use the GroupingItemIndex property.
You can change the item group index via the ChangeGrouping method.