Skip to main content

TcxItemDataBinding Class

Represents an object linking an editing control item to a dataset field.

Declaration

TcxItemDataBinding = class(
    TcxCustomItemDataBinding
)

Remarks

Every editing item 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 your item works properly.

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 (items movement, 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 items.

See Also