Skip to main content

TcxGridItemDBDataBinding.FieldName Property

Specifies the name of the item’s field.

Declaration

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