Skip to main content

TcxCustomGridRecord.IsParentRecordLast Property

Determines whether a group footer that corresponds to a specific group level can be displayed under the current record.

Declaration

property IsParentRecordLast[AIndex: Integer]: Boolean read;

Property Value

Type
Boolean

Remarks

Group footers are displayed under the last record of the corresponding groups. The IsParentRecordLast property returns True for these records.

To determine whether the current record is the last in a group at a particular group level, pass the level’s index as the AIndex parameter. This index is relative to the record’s level. For instance, 0 corresponds to the record’s group level, 1 corresponds to the immediate parent group level and so on.

Consider the following sample grid control.

Within the context of the first group at level 0 (‘EXCHANGE : NONE’), the record with the Index of 2 is the last record in its group and the immediate parent group (whose relative indexes are 0 and 1, respectively).

Within the context of the second group at level 0 (‘EXCHANGE : NYSE’), the record with the Index of 5 is the last record in its group only (its relative index is 0), while the record with the Index of 9 is the last record in its group and the immediate parent group (whose relative indexes are 0 and 1, respectively).

The following image demonstrates the sample grid control with group footers enabled via the OptionsView.GroupFooters property.

Use the LastParentRecordCount property to determine the number of group levels for which the current record can display group footers.

See Also