Skip to main content

TdxDbOrgChart.ParentField Property

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

Declaration

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