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

Returns the index of a parent data group.

#Declaration

Delphi
property ParentDataGroupIndex[ChildDataGroupIndex: TcxDataGroupIndex]: TcxDataGroupIndex read;

#Property Value

Type
TcxDataGroupIndex

#Remarks

The ParentDataGroupIndex property returns the index of the parent data group containing the specified child data group. Every data group in a grid control has a parent, even those at level 0, which have a virtual data group with an index of -1.

Use the ChildDataGroupIndex property to determine the index of child data groups.

Let us examine a grid control displayed in the following image:

Data Groups

For this sample grid:

ParentDataGroupIndex [0] returns -1 (the ‘EXCHANGE: NONE’ data group is at level 0)

ParentDataGroupIndex [1] returns 0 (the parent of data group 1 is data group 0)

ParentDataGroupIndex [4] returns 2 (the parent of data group 4 is data group 2)

See Also