TcxGridItemDataBinding.ValueType Property
Specifies the string representation of the value type class.
Declaration
property ValueType: string read; write;
Property Value
Type |
---|
string |
Remarks
The ValueType property specifies the string representation of the data type which the data binding provides. Usually, you should only set the ValueType for the unbound and provider modes. This automatically designates the ValueTypeClass associated with this data type. At design time, each item of a View has the DataBinding.ValueType property which is represented by a list of the available data types.
In bound mode, the ValueTypeClass and ValueType properties are automatically assigned based on the field type. To create an unbound item of the specified type in your data-aware Views, customize these properties as needed. This also requires the DataBinding.FieldName property to be unassigned, the DataController.DataModeController.SmartRefresh property be set to True and the DataController.KeyFieldNames property to have a value.
For unbound items, the ValueTypeClass and ValueType properties also determine the type of the default editor used to edit the contents of item. For instance, by selecting ‘Boolean‘ value from the ValueType list the TcxCheckBox editor is assigned to the item. See the TcxValueType class topic for more details.
For items in bound mode, the default item editor is determined by the field type. Refer to the FieldName property description.