TcxCustomItemDataBinding.ValueTypeClass Property
Determines the data type the data binding provides.
Declaration
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.