Skip to main content

TcxDBTreeListDataController Class

An object that manages the TcxDBTreeList control’s access to a dataset.

Declaration

TcxDBTreeListDataController = class(
    TcxDataTreeListDataController
)

Remarks

The TcxDBTreeList control binds to a data source via the DataController property. This property represents the TcxDBTreeListDataController object that manages the connection to a dataset.

The dataset providing data for cxDBTreeList is specified via the DataController.DataSource property. This dataset should meet certain requirements. Besides the key field, whose values uniquely identify dataset records, it must contain an additional field, whose values specify the parent node (record) key field for the current node (record). The data source key field is identified via the DataController.KeyField property. The name of the data source containing the parent node’s key field values is specified via the DataController.ParentField property.

To learn more on the hierarchical structure that must meet the tree list requirement, refer to the Self-Referenced Dataset help topic.

A data-aware TreeList control’s DataController property references a TcxDBTreeListDataController object.

See Also