Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxItemDataBinding Class

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

#Declaration

Delphi
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