Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Problem with AutoComplete feature in ComboBox (DropDownList)

$
0
0

Hi,

I have the following problem with AutoComplete feature in ComboBox (DropDownList). My settings for combo:

AutoCompleteMode: AutoCompleteMode.Append

AutoCompleteSource: AutoCompleteSource.ListItems

DropDownStyle: ComboBoxStyle.DropDownList

Items: {"40","41","42","43"}

Now reproduction steps:

Focus and Popup (!) ComboBox, type '42' (at first '40' is selected, then '42' - which is fine) and then press Tab - value '40' is restored... no events of the value or index changed fired.. While debugging I see that on combobox Leave event value is still '42', but on DropDownClosed event it's switched back to '40'. Nothing is fired in between.

Is it a known issue and how to deal with it?

 

Thanx,

Linas


Linas Mikutaitis

Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>