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

# TDBLookupListBox.ListField

Field name with the descriptive value displayed in the listbox.

## Declaration

Source position: dbctrls.pp line 513

`published property TDBLookupListBox.ListField : string read GetListField write SetListField;`

## Description

ListField is a String property which contains the name of the field in the lookup dataset displayed in the listbox for the control. ListField normally contains a more descriptive textual value associated the KeyField.

Use ListFieldIndex to specify the list field by its ordinal position in the lookup dataset. Use KeyField to specify the name of the field with the value stored in the DataField for the linked dataset. Use ListSource to specify the datasource component with the lookup dataset for the control.

## See also

TDBLookupListBox.DataSource |  | Provides access to the linked dataset for the control.
TDBLookupListBox.DataField |  | Name for the field in the linked dataset used in the control.
TDBLookupListBox.ListSource |  | Datasource with the lookup dataset for the control.
TDBLookupListBox.ListFieldIndex |  | Ordinal position of the field in the lookup dataset with the descriptive value displayed in the control.
TDBLookupListBox.KeyField |  | Field name in the lookup dataset with the value for the control.