我如何在vb.net中填充最小dropdownlist值 [英] how can i populate minimum dropdownlist values in vb.net

查看:84
本文介绍了我如何在vb.net中填充最小dropdownlist值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检索dropdownlist中的列值,有没有办法使用dropdown检索n个值,即如果列中有200个以上的值意味着我只需要检索10个listitems是可能的,如果可能的话意味着我该怎么办任何人都可以帮助我,
在我的项目中,DivFilingDate是我的数据库列名称(字段)之一,我需要过滤,使用下拉菜单包含divFilingDate列的fileno为null,因此我只需要检索下拉菜单中的两个项目,一个是全选,第二个是是否可以使用dropdown

i need retrieve column values in dropdownlist, is there any way to retrieve n no of values using dropdown i.e., if column got 200 more values means i need to retrieve only 10 listitems is it possible, if possible means how can i do that any one help me,
In My project DivFilingDate is one of my database column name(Field) and i need to filter, fileno which contains divFilingDate column is null using dropdown, so i need to retrieve only two items in my dropdown item one is select all and item 2 is null is it possible using dropdown

推荐答案

是的,可以!

看看 ComboBox.DataSource [ ^ ]属性.
它实现了IList接口,例如:DataSetArray.默认值为Nothing.
Yes, you can!

Take a look at ComboBox.DataSource[^] property.
It implements the IList interface, such as: a DataSet or an Array. The default is Nothing.


这篇关于我如何在vb.net中填充最小dropdownlist值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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