如何手动加载ComboBoxs的第0行,然后从SQL添加行? [英] How do I load row 0 of a ComboBoxs manually, then add rows from SQL?

查看:174
本文介绍了如何手动加载ComboBoxs的第0行,然后从SQL添加行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这一定很简单,但它打败了我。



如何手动加载第0行ComboBox显示和值成员,然后按照SQL查询第1行和第1行?



我正在尝试为构建SQL SELECT字符串提供ALL选项。



谢谢。



John

This has to be simple, but it's beating me.

How do I load row 0 ComboBox display and value members manually, then follow with an SQL query for rows 1 and on?

I'm trying to provide an "ALL" option for the construction of an SQL SELECT string.

Thank you.

John

推荐答案

它实际上非常简单你期待。有不同的方式。您可以将选项添加到数据源,也可以手动添加。



这里有一些很好的例子: http://stackoverflow.com/questions/5134152/add-an-item-to-combobox -before-bind-data-from-data-base [ ^ ]
It actually is pretty easy as you expect. There are different ways. You can add the option to your Data Source or you can just add it manually.

Some good examples are here: http://stackoverflow.com/questions/5134152/add-an-item-to-combobox-before-bind-data-from-data-base[^]


这篇关于如何手动加载ComboBoxs的第0行,然后从SQL添加行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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