I've got a simple requirement: when the user types something in a combo, my app will go out somewhere and get a list of relevant items that might match what they want. e.g. if they type 'A', it'll go out and get all books beginning with A.
I initially used the standard .NET combo with a custom auto-complete data source, but that kept crashing randomly. Looking for help on this subject lead me to realise that everyone else in the world has the same problem!
I then tried the Infragistics suite of controls and tried the same with an UltraComboEditor
. Every time the user types something, I rebuild the data source (just string[]) and set the DataSource
property on the combo. This threw various errors. I then tried setting the ValueList
property, but this threw errors too (different errors though!)
I haven't elaborated on the errors as I'm sure it's because I'm using it incorrectly. I'm hoping someone has a nice sample they can share because documentation seems to be scarce when you're using DataSource/ValueList
instead of data binding from the designer.