Skip to main content

TcxDBTreeListDataController.ParentField Property

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

Declaration

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