添加"ALL"从数据库中的表绑定所有其他选项时,aspx组合框的选项 [英] adding an "ALL" option to the aspx combobox when all the other options are bound from table in database

查看:78
本文介绍了添加"ALL"从数据库中的表绑定所有其他选项时,aspx组合框的选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用dev express组合框,其中所有选项都来自数据库中的表....我需要添加另一个名为全部"的选项,以便当我选择全部选项时,所有数据都显示在网格中. ...如何在组合框中添加all选项和其他选项?

在此先感谢...

Hi,
I am using dev express combobox where all the options come from a table in the data base.... I need to add another option called "All" so that when i select the all option,all the data is shown in the grid....How to add the all option with the other options in the combobox?

Thanks in advance...

推荐答案

看看是否有ComboBox实例的Items属性....如果有,请使用

cmbBoxInstance.Items.Insert(所有项目")

我没有使用您正在谈论的控件,但是认为这可以帮助....:)
see whether there is any Items property of the ComboBox instance....if there is then use

cmbBoxInstance.Items.Insert("The ALL Item")

I''ve not worked with the control you are talking about but think this could help.... :)


这篇关于添加"ALL"从数据库中的表绑定所有其他选项时,aspx组合框的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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