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

# TCustomDBListBox.DataField

Name for the field in the linked dataset used in the control.

## Declaration

Source position: dbctrls.pp line 379

`public property TCustomDBListBox.DataField : string read GetDataField write SetDataField;`

## Description

DataField is a String property which contains the name of the field in the linked dataset for the control. It is the destination where a value selected in the control is stored.

Read and write access for the property value is redirected to the FieldName property in the internal TFieldDataLink instance used in the control. Use Field to access the field definition and metadata for the column in the linked dataset.

Use DataSource to specify the datasource component which provides access to the linked dataset for the control.

## See also

TCustomDBListBox.DataSource |  | Provides access to the linked dataset for the control.
TCustomDBListBox.Field |  | Field definition in the linked dataset for the control.
TFieldDataLink.FieldName |  | FieldName - the name of the attached field, stored as a string.