填充组合框下拉 [英] Populating ComboBox drop down

查看:91
本文介绍了填充组合框下拉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我想填充组合框的下拉列表.

当我在组合框中书写时,它会显示有关键入字符的列表.就像我写"abc"一样,它将显示与"abc"相关的名称的列表.

请给我一些有关这些的代码,以便我理解.

谢谢.

Hi!

I want to populate the dropdown list of a combobox.

When I am writing in the combobox it displays the list regarding to the typed characters. Like if I am writing "abc" it will display a list of names related to "abc".

Please give me some code regarding these so I can understand.

Thank you.

推荐答案

不确定该问题.这是asp问题还是客户问题?在这种情况下,一个小的代码段确实会有所帮助.
Not sure of the issue. is this a asp problem or a client problem? IN this case a small code snippet would really help.


回到2.0,ComboBox具有AutoComplete选项.您可以将AutoCompleteSource设置为与ListItems相等,然后可以将AutoCompleteMode设置为Recommendation,Append或RecommendationAppend.

玩一会儿.
Back to 2.0, the ComboBox has AutoComplete options. You can set AutoCompleteSource equal to ListItems and then you can set AutoCompleteMode to Suggest, Append, or SuggestAppend.

Play around with those for a bit.


这篇关于填充组合框下拉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆