Skip to main content

TcxGridItemDBDataBinding Class

An object that links a data-aware item to a dataset field.

Declaration

TcxGridItemDBDataBinding = class(
    TcxGridItemDataBinding
)

Remarks

Every data-aware item (a column in a Table View or a row in a Card View) is linked to a dataset with the help of a DataBinding object. When an item is created it is not connected to a dataset field. In order to do this, the FieldName property must be initialized with the name of the required TField object from a dataset. It is possible to change the FieldName later thus connecting an item to another field in a dataset.

The View’s DataController.CreateAllItems method allows you to create items for all dataset fields. This method sets the items’ FieldName property automatically. To access the data controller associated with the item, use the DataController property.

Inheritance

See Also