Thanks for youre reply.
The solution provided was not exactly what i was looking for.
I want the user to be able to move through the list with arrow up and down. I just don’t want the text in the combobox to change with it.
I tried the following things:
Databinding the text propertie of the combo box to an item in my class that has the correct value. But setting these databinding doesn’t seems to have any effect.
Using the comboBoxRelatieZoeken_EditorControl_CurrentRowChanged event to restore the text to its previous value before moving through the list . This kind of works. But the combobox comboBoxRelatieZoeken_TextChanged event is fired multiple times now ( even though i remove the event handler, see sample ). I need that event for executing my query.
private void comboBoxRelatieZoeken_EditorControl_CurrentRowChanged(object sender, CurrentRowChangedEventArgs e)
comboBoxRelatieZoeken.TextChanged -= new EventHandler(comboBoxRelatieZoeken_TextChanged);
comboBoxRelatieZoeken.Text = Zoektext;
comboBoxRelatieZoeken.TextChanged += new EventHandler(comboBoxRelatieZoeken_TextChanged);
The combobox shows a list of the first 10 items retrieved by a query. On every textchanged these items gets reloaded. The data required is to much to load add once. ( try to make something like an autocomplete textbox)
I you got any suggestion on how to prevent the text to change I’m very instrested.
Tim van Rooijen