Back to Devexpress

TcxGridItemDBDataBinding.FieldName Property

vcl-cxgriddbdatadefinitions-dot-tcxgriditemdbdatabinding.md

latest6.1 KB
Original Source

TcxGridItemDBDataBinding.FieldName Property

Specifies the name of the item’s field.

Declaration

delphi
property FieldName: string read; write;

Property Value

Type
string

Remarks

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 typeDefault editor
ftBooleanTcxCheckBox
ftCurrency, ftBCD, ftFMTBcdTcxCurrencyEdit
ftDate, ftDateTimeTcxDateEdit
ftTimeTcxTimeEdit
ftBytes, ftVarBytes, ftBlob, ftFmtMemo, ftParadoxOle, ftDBaseOle, ftTypedBinaryTcxBlobEdit
ftMemoTcxMemo
ftGraphicTcxImage

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

TcxGridItemDBDataBinding Members

cxGridDBDataDefinitions Unit