Skip to main content

TcxLookupComboBoxProperties.ListSource Property

Specifies the TDataSource instance containing data to display within a lookup editor.

Declaration

property ListSource: TDataSource read; write;

Property Value

Type
TDataSource

Remarks

Use the ListSource property to specify the TDataSource instance containing data to display within a lookup editor. Setting this property value is not enough for the lookup editor to display data within the dropdown list. The lookup editor must have at least one column in the ListColumns collection bound to a specific ListSource field.

Also you have to specify a key field(s) via the KeyFieldNames property used to identify records within the ListSource. A key field value(s) of a record selected in the dropdown list matches the edit value of an editor and can be accessed via the EditValue property.

The value displayed in the edit region of a lookup combo box is addressed by the ListFieldIndex property.

See Also