Skip to main content

TcxDataControllerGroups.ParentDataGroupIndex Property

Returns the index of a parent data group.

Declaration

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