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

# TDBEdit.DataField

Contains the name of the field with the value for the control.

## Declaration

Source position: dbctrls.pp line 215

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

## Description

DataField is a String property which contains the name for the field in the linked dataset where the value for the control is read and written. Read and write access to the property value are redirected to the FieldName property in the internal TFieldDataLink instance for the control. Changing the value in DataField causes the value in Field to be updated.

Set the value in DataSource to the component which provides access to the dataset for the data-aware control.

## See also

TDBEdit.Field |  | Provides access to the field definition for the data-aware control.
TDBEdit.DataSource |  | Provides access to the dataset with content for the control.
TFieldDataLink.FieldName |  | FieldName - the name of the attached field, stored as a string.
TFieldDataLink.Field |  | The Field to which the datalink is attached.
TDataLink.DataSource
TDataLink.DataSet