【发布时间】:2013-12-17 05:20:33
【问题描述】:
我有一个包含数据源的组合框,但我想添加一个项目。
我希望它看起来像这样。
----Please select one--- //the item I want to add
Tokyo //the items that came from the database
Osaka //the items that came from the database
Boston //the items that came from the database
Manila //the items that came from the database
我该如何补救?
谢谢
【问题讨论】:
-
您的组合框的确切数据源是什么?
DataTable?还是别的什么? -
数据源是一个存储过程。
-
这不是实际的数据源,这里的数据源应该是一些.NET 集合、列表……,你的
stored Procedure只是通过ADO.NET 调用来获取数据 -
那我需要做什么?如何确定确切的数据源?
-
你给
ComboBox.DataSource分配了什么?
标签: c# winforms combobox datasource