使用断开连接模式时出现问题

时间:2019-04-28 15:02:50

标签: oracle11gr1

我正在尝试以断开连接的方式写入内容以从服务器加载数据,但是它根本不起作用...我试图在Sellers表中选择所有电子邮件并将其添加到comboBox中,以便在其中我缺少什么步骤?

string cmdstr = "select seller_email from seller";
adapter = new OracleDataAdapter(cmdstr, constr);
ds = new DataSet();
adapter.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
Seller_email_update_comboBox.Items.Add(ds.Tables[0]);

0 个答案:

没有答案