【发布时间】:2015-03-03 06:34:25
【问题描述】:
我有一个方法 (LoadCustomers()),它返回一个元素字典,如下所示:
Dictionary<int, string>()
我将它连接到组合框的数据源,如下所示:
Myclass m = new Myclass();
combo1.DataSource = new BindingSource(m.LoadCustomers(), null);
combo1.DisplayMember = "Value";
combo1.ValueMember = "Key";
现在我想在组合框列表的前面放一个类似的项目:
<select one customer>
如何在 c# 中在 winforms 上执行此操作?
非常感谢
【问题讨论】:
标签: c# winforms binding combobox