我想在运行时在组合框中添加选择值 [英] I want to add select value in combobox at runtime

查看:65
本文介绍了我想在运行时在组合框中添加选择值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i想要在我们运行应用程序时添加然后值从数据库中重新显示并在组合框中显示确定,但我想添加组合框索引0 =选择默认情况下在运行时间





i认为它取决于如下查询:



选择'select',从降级状态说明



所以以上查询不起作用所以给我任何解决方案

hi

i want to add when we run application then value is reterieve from database and show in combobox ok , but i want to add combo box index 0 = select by default at run time


i think it depend upon query like :

select 'select', state from demotable

so above query is not working so give me any solution

推荐答案

嗨Pravin,试试这个



Hi Pravin, try this

Select 'Select' AS 'State'
Union
Select State from demoTable





我希望这会对你有帮助。



I hope this will help you.


这篇关于我想在运行时在组合框中添加选择值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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