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

TcxCustomGridRecord.ParentRecord Property

Returns an immediate parent record for the current record.

#Declaration

Delphi
property ParentRecord: TcxCustomGridRecord read;

#Property Value

Type
TcxCustomGridRecord

#Remarks

The ParentRecord property allows you to return an immediate parent record for the current record. This allows you to traverse through records from a nesting level to an upper level. To traverse through all visible records in any direction, see the View’s ViewData.Records property.

Suppose that grouping is applied to a View and the current record represents a row at nesting level greater than 0, i.e. it has a parent row. In this case, ParentRecord returns the appropriate grouping row at the preceding level.

Also, if a record is displayed at the first nesting level and it belongs to a detail clone, the ParentRecord property returns the master row associated with the detail.

If a record is displayed at the first nesting level and does not belong to a detail clone, ParentRecord returns NIL.

See Also