Hi there,
I have got a question about the search behaviour in a Combobox. I have got a Combo Box which is filled from a DataSet. There is an ID and a Value. I set cmb.ValueMember = "id" and cmb.DisplayMember = "value". eg. id=UZ value=usbekistan (german spelling). If I get into the box and type UZ it completes to usbekistan which is what I expected and wanted to have. But now I have id=US and value=Vereinigte Staaten von Amerika. If I type US it completes to Usbekistan.
Is it possible to configure the Combobox that only the ids will be matched and not what I use as values?
Regards,
Anja
No, there's really no exposed way to modify the AutoComplete behavior.
one more query, Can we customize the Auto Complete feature in a UltraCombo?
You would have to implement it yourself, but I see no reason why it could not be done.
Hi Mike,
we are also facing the same problem, Can we get the AutoComplete feature in this customised combo (TextEditor + Grid) as well?
Thanks,
Sandeep
Hi Anja,
No, the Combo will always search the DisplayMember field first, and then look in the ValueMember field only if it did not find a match.
You might want to consider creating your own custom combo control. This isn't as difficult as it might sound. What you do is create an UltraTextEditor control and add a DropDownEditorButton to the ButtonsRight collection. Then you can put a WinGrid on the form and assign it as the Control property of the DropDownEditorButton. You will have to handle some events to control what happens when the user selects a row in the grid and such, but this way you could completely control the searching behavior.