}// I want to retrieve data form tables by taking the name of the table from the list in the combobox{ //Get the name of the table from the comboboxClass=16 HResult=-21462
da = new SqlDataAdapter("SELECT dbo.User.name FROM dbo.User", con);comboBox1.DataSource = dt;它在每一行中返回System.Data.DataRowView。我试过:comboBox1.DisplayMember = "d
这就是我所拥有的,它没有产生任何错误,但是组合框也没有显示我的SQL语句的结果?这不会产生任何错误,但是我的组合框中填充了System.Data.DataRowViewDataSet dsSqlDataAdapter da = new SqlDataAdapter(sql, connectionString);da.Fill(1234);
combobox1.DisplayMe