将默认值添加到有界组合框 [英] adding default value to bounded combobox

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

问题描述

朋友,
我正在使用独立数据库文件.我已将组合框与数据表绑定在一起.该表一开始是空的.我希望用户从列表中选择无".你能指导我怎么做吗
关于

Hi Friends,
I am working with standalone database file. I have bounded a combobox with a datatable. that table is empty at the begining. I want the user to select None from the list. can you please guide me how I can do that
Regards

推荐答案

一种方法是将"None"添加到查询中,该查询返回组合框中显示的列表.然后默认情况下,在代码中将组合框的选定值设置为无".
One way to do this could be to add "None" to the query that returns the list that is shown in the combobox. Then by default set the selected value of the combo box to "None" in your code.


这篇关于将默认值添加到有界组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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