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

TcxGridItemDataBinding Class

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

#Declaration

Delphi
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