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

TcxCustomItemDataBinding.ValueTypeClass Property

Determines the data type the data binding provides.

#Declaration

Delphi
property ValueTypeClass: TcxValueTypeClass read; write;

#Property Value

Type
TcxValueTypeClass

#Remarks

This property specifies the data type provided by the data binding, thus determining the values types displayed by an item. Normally, you should only set ValueTypeClass for unbound and provider modes. This ensures correct memory allocation, validation and item values sorting. In bound mode, ValueTypeClass is assigned automatically based on the field type.

In unbound mode, ValueTypeClass also determines the default editor type used to edit an item content. For instance, assigning ValueTypeClass to TcxBooleanValueType results in using the TcxCheckBox editor for items. See the TcxValueType class topic for more details.

To obtain the textual representation of the value type, use the ValueType property.

In bound mode, the field type determines the default item editor. Refer to the TcxDBItemDataBinding.FieldName and TcxDBVerticalGridItemDataBinding.FieldName properties for details.

See Also