Back to Devexpress

TcxGridItemDBDataBinding Class

vcl-cxgriddbdatadefinitions-f4732af0.md

latest2.1 KB
Original Source

TcxGridItemDBDataBinding Class

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

Declaration

delphi
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

TObject TPersistent TcxGridItemDataBinding TcxGridItemDBDataBinding

See Also

TcxGridDBBandedColumn.DataBinding

TcxGridDBCardViewRow.DataBinding

TcxGridDBColumn.DataBinding

TcxGridDBDataController.CreateAllItems

TcxGridItemDBDataBinding Members

cxGridDBDataDefinitions Unit