111,130
社区成员
发帖
与我相关
我的任务
分享 string sqlcmd = "select * from chinaarea";
SqlDataAdapter thisada = new SqlDataAdapter(sqlcmd, cn);
DataSet thisdataset = new DataSet();
thisada.Fill(thisdataset, "test");
comboBox1.DataSource = thisdataset.Tables["test"];
comboBox1.SelectedIndex = 713;
comboBox1.DisplayMember = "diquname";
comboBox1.ValueMember = "diqunumber";
cn.Close();
//下拉菜单绑定结束