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

TcxDBTreeListDataController.ParentField Property

Specifies the name of the dataset field containing the parent node’s key field values.

#Declaration

Delphi
property ParentField: string read; write;

#Property Value

Type
string

#Remarks

The KeyField and ParentField properties are required to build a tree structure.

KeyField values identify records. The ParentField property designates the dataset field whose values define the record’s position within the tree structure. ParentField values specify the KeyField value of the record (node in the tree structure), owning the current record (node).

If a record has a ParentField value without a corresponding key field value within the dataset, this record is displayed at the root of the tree structure. Child records of a record (node) have the same ParentField value, which matches the KeyField value of their parent record (node).

See Also