TcxCustomGridRecord.ParentRecord Property
Returns an immediate parent record for the current record.
Declaration
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.