vcl-cxgriddbdatadefinitions-dot-tcxgriditemdbdatabinding.md
Specifies the name of the item’s field.
property FieldName: string read; write;
| Type |
|---|
| string |
The FieldName property addresses the field in a data controller to which the item is linked. The field itself can be accessed via the Field object.
When FieldName is assigned, the ValueTypeClass property defining the type of value this item represents is set automatically based on the dataset field type. This ensures the grid performs properly when accessing, sorting and validating item values.
The field type determines the default editor used to edit the contents of the item. The following table lists the default editors corresponding to field types. This correspondence is specified by the DBRepositoryItemClasses array declared in cxEditDBRegisteredRepositoryItems unit:
| Field type | Default editor |
|---|---|
| ftBoolean | TcxCheckBox |
| ftCurrency, ftBCD, ftFMTBcd | TcxCurrencyEdit |
| ftDate, ftDateTime | TcxDateEdit |
| ftTime | TcxTimeEdit |
| ftBytes, ftVarBytes, ftBlob, ftFmtMemo, ftParadoxOle, ftDBaseOle, ftTypedBinary | TcxBlobEdit |
| ftMemo | TcxMemo |
| ftGraphic | TcxImage |
For items connected to other fields, TcxMaskEdit is used.
See Also
TcxCustomDataField.ValueTypeClass
TcxCustomDataField.ValueTypeClass
TcxCustomItemDataBinding.ValueType
TcxCustomItemDataBinding.ValueType
TcxCustomItemDataBinding.ValueTypeClass
TcxCustomItemDataBinding.ValueTypeClass
TcxCustomSchedulerStorageField.ValueType
TcxCustomSchedulerStorageField.ValueType
TcxCustomSchedulerStorageField.ValueTypeClass
TcxCustomSchedulerStorageField.ValueTypeClass
TcxCustomSpinEditProperties.ValueType
TcxCustomSpinEditProperties.ValueType
TcxGridChartItemDataBinding.ValueType
TcxGridChartItemDataBinding.ValueType
TcxGridChartItemDataBinding.ValueTypeClass
TcxGridChartItemDataBinding.ValueTypeClass
TcxGridItemDataBinding.ValueType
TcxGridItemDataBinding.ValueType
TcxGridItemDataBinding.ValueType
TcxGridItemDataBinding.ValueTypeClass
TcxGridItemDataBinding.ValueTypeClass
TcxGridItemDataBinding.ValueTypeClass
TcxGridItemDBDataBinding.Field
TcxPivotGridFieldDataBinding.ValueType
TcxPivotGridFieldDataBinding.ValueType
TcxPivotGridFieldDataBinding.ValueTypeClass
TcxPivotGridFieldDataBinding.ValueTypeClass
TcxSpinButtonProperties.ValueType
TcxSpinButtonProperties.ValueType
TcxSpinEditPropertiesValues.ValueType
TcxSpinEditPropertiesValues.ValueType
TdxSpreadSheetConditionalFormattingRuleCustomScaleStop.ValueType
TdxSpreadSheetConditionalFormattingRuleCustomScaleStop.ValueType
TdxSpreadSheetConditionalFormattingRuleTopBottomValues.ValueType
TdxSpreadSheetConditionalFormattingRuleTopBottomValues.ValueType
TdxSpreadSheetHyperlink.ValueType
TdxSpreadSheetHyperlink.ValueType
TcxGridItemDBDataBinding Class