Skip to main content

TcxGridDBDataController Class

A data controller which manages data from a dataset.

Declaration

TcxGridDBDataController = class(
    TcxDBDataController,
    IcxCustomGridDataController,
    IcxGridDataController,
    IcxEditorFieldLink
)

Remarks

The TcxGridDBDataController provides data from a TDataSet to a data-aware View. You can connect a View to a dataset via the DataController.DataSource property.

To create master-detail relationships between datasets, you should initialize the MasterKeyFieldNames and DetailKeyFieldNames properties of the detail data controller with the names of master and detail data set fields and their values are used to establish the relationship.

To synchronize the master and detail data controllers, you need to set their key field names via the KeyFieldNames property.

The DataModeController synchronizes the data displayed via the data controller and the corresponding dataset. It also controls the manner in which data is obtained by the detail data controller when linked to a parameterized query.

See Also