Hi,
I have a multi-column combobox that is data-bound to a binding source control.
Then in the form code I have the following lines:
Me.RadMultiColumnComboBox1.DropDownStyle = RadDropDownStyle.DropDownList Me.RadMultiColumnComboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend Me.RadMultiColumnComboBox1.SelectedIndex = -1
The last line, in particular, is important in our case because we want to prevent the selection of the first record by default. Everything works fine except when there's only one record in the list.
When that happens, the textbox element picks up the display member of the lone item as soon as the user clicks the drop-down arrow. The text remains after the pop-up closes even if the user does not explicitly select the solo record. This gives the user the false impression that a value has been set, but in reality the underlying value is still null.
We then found out that the second line of code above is what is causing this unwanted behavior. When commented out, an MCCB with a single record does not exhibit the problem.
We would like to keep the SuggestAppend feature working (i.e., in the case of multiple records), so is there a way to resolve this issue without having to resort to checking the number of records in the list?