Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxLookupComboBoxProperties.ListSource Property

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

#Declaration

Delphi
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