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.ValueType Property

Specifies the string representation of the value type class.

#Declaration

Delphi
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.

See Also