Back to Devexpress

TcxValueType Class

vcl-cxdatastorage-0a230915.md

latest5.9 KB
Original Source

TcxValueType Class

The base class for classes that implement functionality related to different value types in DevExpress data controllers and other data-related APIs.

Declaration

delphi
TcxValueType = class(
    TObject
)

Remarks

The TcxValueType class has members that allow you to do the following:

Terminal TcxValueType Class Descendants

Do not use the TcxValueType class directly. Use the following descendants that correspond to TFieldType values:

Caption[1] ValueTcxValueType DescendantTFieldType[2] ValueDescription
'String'TcxStringValueTypeftStringUnicode string values.
'WideString'TcxWideStringValueTypeftWideStringWide string values.
'Smallint'TcxSmallintValueTypeftSmallint16-bit signed integer values.
'Integer'TcxIntegerValueTypeftInteger32-bit signed integer values.
'Word'TcxWordValueTypeftWord16-bit unsigned integer values.
'Boolean'TcxBooleanValueTypeftBooleanBoolean values.
'Single'TcxSingleValueTypeftSingleSingle precision floating-point values.
'Float'TcxFloatValueTypeftFloatDouble precision floating-point values.
'Currency'TcxCurrencyValueTypeftCurrencyMonetary values.
'DateTime'TcxDateTimeValueTypeftDateTimeDate and time values.
'LargeInt'TcxLargeIntValueTypeftLargeInt64-bit signed integer values.
'FMTBcd'TcxFMTBcdValueTypeftFMTBcdBinary-encoded decimal values that can be converted to Currency without a loss of precision.
'SQLTimeStamp'TcxSQLTimeStampValueTypeftTimeStamp[3]High-precision date and time values.
'Variant'TcxVariantValueTypeftVariantValues of any type.
'BLOB'[4]TcxBLOBValueTypefsBlobBLOBs (Binary Large OBjects) as values. BLOB values are most often used for storing files in a database.
'Object'[5]TcxObjectValueTypeftObjectValues that store non-visual objects (TObject descendant instances) with arbitrary data for an unbound editor or Data Grid item.

Value Type Classes and Default In-Place Editors

When a container control is in unbound mode, the corresponding ValueTypeClass or ValueType property specifies the default in-place editor.

ValueType ValueValueTypeClass ValueDefault Editor
'Boolean'TcxBooleanValueTypeTcxCheckBox
'Currency'TcxCurrencyValueTypeTcxCurrencyEdit
'DateTime'TcxDateTimeValueTypeTcxDateEdit
'FMTBcd'TcxFMTBcdValueTypeTcxCurrencyEdit
'SQLTimeStamp'TcxSQLTimeStampValueTypeTcxDateEdit
Any other valueAny other valueTcxTextEdit

Inheritance

TObject TcxValueType

Footnotes

  1. Different TcxValueType class descendants return different caption values.

  2. This column lists the corresponding TFieldType values.

  3. 'SQLTimeStamp' also corresponds to the TSQLTimeStamp type.

  4. Use this value type with those controls and editors that support BLOB.

  5. Use this type only in custom or inherited components because DevExpress and standard VCL components have no information on actual content of such values.

See Also

TcxGridItemDataBinding.ValueTypeClass

TcxGridItemDBDataBinding.FieldName

TdxStorageItemCustomDataBinding.ValueTypeClass

TcxValueType Members

cxDataStorage Unit