Hai Friends我有一个Combobox和Dropdownstyle是Dropdownlist

编程入门 行业动态 更新时间:2024-10-11 11:21:02
本文介绍了Hai Friends我有一个Combobox和Dropdownstyle是Dropdownlist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的问题是在那里下载了很多数据,当我们搜索某些东西时,它只用第一个字母进行搜索 例如 Mydropdownlist数据是 anil sunil suman usha 每当我选择组合框并在键盘上键入s键时它会显示suman,当我输入firstletter S和secondletter U时它会显示usha 但是我想用SU搜索 //但是我想要

我' ll type su它将显示sunil

b $ 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 sunil

please 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

本文发布于:2023-11-06 08:47:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563222.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我有一个   Friends   Hai   Dropdownlist   Dropdownstyle

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!