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

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