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

TcxDataControllerGroups.ItemGroupIndex Property

Returns the group index of the item at a specified position.

#Declaration

Delphi
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.

See Also