本文介绍了Hai Friends我有一个Combobox和Dropdownstyle是Dropdownlist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问题是在那里下载了很多数据,当我们搜索某些东西时,它只用第一个字母进行搜索 例如 Mydropdownlist数据是 anil sunil suman usha 每当我选择组合框并在键盘上键入s键时它会显示suman,当我输入firstletter S和secondletter U时它会显示usha 但是我想用SU搜索 //但是我想要
我' ll type su它将显示sunilb $ b 请告诉我 谢谢
解决方案为组合框设置以下属性
comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend; comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;
你所追求的是自动完成功能 - 但组合框的默认行为是使用你的搜索的第一个字母 这篇CP文章可能有所帮助(我没有亲自尝试过)自动完成组合框 [ ^ ]还有其他选项 SO Post [ ^ ]
my Question is in that dropdown tomany data is there and when ever we search for somthing it's search with first letter only for example Mydropdownlist data is anil sunil suman usha whenever i select combobox and type s key on keyboard it will show suman and when ever i'll type firstletter S and secondletter U it will show usha but i wanna to search with SU //but i want
when ever i'll type su it will show sunilplease tell me thanks
解决方案 set the following properties for combobox comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend; comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;What you are after is AutoComplete functionality - but the default behaviour for a combobox is to just use the first letter of your "search" This CP article might help (I haven't tried it personally) Auto Complete ComboBox[^] and there are further options on this SO Post[^]更多推荐
Hai Friends我有一个Combobox和Dropdownstyle是Dropdownlist
发布评论