Skip to main content

TcxDBDataController Class

A data controller that manages data from a TDataSet descendant.

Declaration

TcxDBDataController = class(
    TcxCustomDataController
)

Remarks

The TcxDBDataController class derives from the TcxCustomDataController class, which implements working with a user-defined data source, data filtering, calculation of summaries and group operations. TcxDBDataController extends this functionality by enabling operations for datasets (TDataSet descendants). To bind your grid control to a dataset, link them via a data source and specify this data source via the data controller’s DataSource property.

You can create a master-detail relationship between datasets by creating a data controller for each dataset and specifying the master and detail key field names via the MasterKeyFieldNames and DetailKeyFieldNames properties of the detail data controller. To synchronize the master and detail data controllers, specify one or more key field names via the KeyFieldNames property.

The DataModeController is used to manage the synchronization between data displayed in the data controller and the corresponding dataset. It also controls the way data is obtained by the detail data controller linked to a parameterized query dataset.

Note

You cannot use TcxDBDataController in provider mode. Setting the inherited CustomDataSource property has no effect.

Inheritance

See Also