vb.net中如何让DataGridView1控件一次显示多个表?这是我的代码:For ii 1 To 2Tryconn New SqlConnecti
vb.net中如何让DataGridView1控件一次显示多个表? 这是我的代码:
For ii = 1 To 2 Try conn = New SqlConnection("Data Source=10.7.1.159;Initial Catalog=a1;Persist Security Info=True;User ID=wang;Password=pcdmis") da = New SqlDataAdapter("select 分数1,分数2,分数3 from t" & ii, conn) ds = New DataSet() da.Fill(ds, "ds") abc.DataGridView1.DataSource = ds.Tables("ds") Catch ex As Exception MsgBox("不对") End Try Next