Skip to main content
A newer version of this page is available. .

TcxGridItemDataBinding Class

Represents an object linking a grid View item with a dataset field.

Declaration

TcxGridItemDataBinding = class(
    TPersistent
)

Remarks

Every grid View 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. Generally, data binding is used to determine the value type. The value type is identified by the ValueTypeClass property. ValueTypeClass determines the manner in which data is represented (as string, integer, date, boolean etc.). In bound mode, ValueTypeClass is assigned automatically based on the field type. In unbound and provider modes, you have to specify the ValueTypeClass manually to ensure that the item works correctly. The ValueTypeClass and ValueType properties also provide the way to implement the unbound items in data-aware Views.

The Data property is extremely useful in Provider Mode, e.g. for indexing columns. When in provider mode, the custom data source cannot track display changes (moving items, for instance) so data referencing can be inadequate. Use the Data property to assign a unique value to items. While using your custom data source, refer to the Data property to recognize the items. See the Provider Mode topic for more information.

Inheritance

TObject
TPersistent
TcxGridItemDataBinding
See Also