I am working with Syncfusion tools, and am trying to add a ComboBoxAutoComplete
control to a Windows form. I have a DataTable
that I'm using as my DataSource
with two columns: ID
and Name
. I set the DataSource
, DisplayMember
, and ValueMember
properties like so:
ComboBox1.AutoCompleteControl.DataSource = table
ComboBox1.DisplayMember = "Name"
ComboBox1.ValueMember = "ID"
The control loads correctly, but it appears that the DisplayMember
does not get applied. The control will display only the ID of the selected item. When I expand the drop-down, it displays the entire table (both columns). I tried setting the DisplayMember
and ValueMember
directly on the AutoCompleteControl
, but those properties do not exist. Is there a different property that is used to control what text is displayed in the ComboBoxAutoComplete
control?