[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'DBCtrls' (#lcl)

# TDBText.DataField

The name of the field, as a string (i.e. cannot be referred to as an Index).

## Declaration

Source position: dbctrls.pp line 310

`published property TDBText.DataField : string read GetDataField write SetDataField;`

## Description

DataField is a String property which contains the field name in the linked dataset with the value displayed in the control. Read and write access for the property value is redirected to the FieldName property in the internal TFieldDataLink instance used in the control.

Use DataSource to specify the datasource with the linked dataset for the control. Use Field to access the definition and metadata for the field in the linked dataset.

## See also

TFieldDataLink.FieldName |  | FieldName - the name of the attached field, stored as a string.
TDBText.DataSource |  | Provides access to the content displayed in the control.
TDBText.Field |  | Provides access to the field definition for the data-aware control.