开发者

ComboBox & SelectedItem setting on dropdown opening

I have a ComboBox control of DropDown type which contains items "Vx", "V", "G", "g".

Edit field text is "V" (

ComboBox & SelectedItem setting on dropdown opening

:)

The problem is: when I open dropdown list, item "Vx" highlighted as selected, not "V". So I assume combobox uses FindString to find SelectedItem - so search result is equivalent to first matched item by case-insensitive string.StartsWith.

The question is: how I can override this behavi开发者_JS百科our to find full-matched item? I need case-sensitive search with full equivalent of strings, not only StartsWith. For entered "V" i need item "V" (not "Vx") to be selected when combobox dropdown list is opening.

Thank you for replies.


Do you need to type in the combo box? If not, change the DropDownStyle to DropDownList.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜