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.DataGroupIndexByRowIndex Property

Returns the data group index for a specified row index.

#Declaration

Delphi
property DataGroupIndexByRowIndex[RowIndex: Integer]: TcxDataGroupIndex read;

#Property Value

Type
TcxDataGroupIndex

#Remarks

Row index defines the visible row position within a grid control. DataGroupIndexByRowIndex returns the index of the data group which owns a specified row. Use the ParentDataGroupIndex and ChildDataGroupIndex properties to return indexes of the parent and child data groups.

The following image demonstrates relations between row and data group indexes.

For this sample grid control:

DataGroupIndexByRowIndex[0] returns 0

DataGroupIndexByRowIndex[1] returns 1

DataGroupIndexByRowIndex[2] returns 1

See Also