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

TdxDbOrgChart.ParentField Property

ParentField determines the parent of a tree node corresponding to a given database record.

#Declaration

Delphi
property ParentField: TField read;

#Property Value

Type
TField

#Remarks

Contains a reference to the required field of a connected database setting the ParentKey property of tree nodes. Can be changed via setting of ParentFieldName. Parent Field type must match with KeyField type. This field determines the parent of a node connected with a given record. Blank ParentField field means, that a given node is at the top level of the hierarchy without a parent. The same result can be achieved by setting the ParentField value equal to KeyField (the node refers to itself). Records where the node refers to its child are by definition invalid and as a result are ignored.

See Also