使用C#.net将数据绑定到Win窗体中的组合框 [英] Binding data to combo box in win forms using c#.net

查看:79
本文介绍了使用C#.net将数据绑定到Win窗体中的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的问题,我无法在google中找到答案,我有一个组合框,还有一个名为bindcombobox()的方法,在该方法中,我正在获取客户名称,而我面临的问题是何时我运行exe文件,并在下拉列表中看到了其他客户端,下拉列表中显示的第一个客户端名称是我想要实现的,当表单中的客户端名称被废弃时,我想在组合框中留一个空白下拉菜单有一种实现的方法,有人可以建议我如何获取该

i had a very simple question for which i cannot find answer in google, i have a combo box and there is a method called bindcombobox() in which i am getting my clients names , there problem i am facing is when i run the exe i am getting the first client names shown in the combo box with a drop down of other clients , wha i am trying to achieve is i want a blank space in combo box when the forms gets loded fallowed with clients names in the drop down is there a way to achieve it , can some one suggest me how to get that

推荐答案

您到底在搜索什么.
我写了"C#ComboBox绑定",第二个链接是
http://msdn.microsoft.com/en-us/library/w67sdsex.aspx [ ^ ]
这是MSDN文档和示例源.如果您只是想以简单的方式进行操作,我建议您不要成为程序员.专业的开发人员实际上非常努力.
What on earth were you searching.
I wrote "C# ComboBox Binding" and the second link is
http://msdn.microsoft.com/en-us/library/w67sdsex.aspx[^]
which is MSDN documentation and sample source. If you just want things the easy way, I would suggest not becoming a programmer. Professional developers actually work very hard.


这篇关于使用C#.net将数据绑定到Win窗体中的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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