慕九州3529262
Dim sql As String = "select * from 表 where " & combobox1.text & "='"+textbox1.text & "'"Using da As New SqlClient.SqlDataAdapter(Sql, cnn), tb As New DataTable, bs As New BindingSourceda.Fill(tb)bs.DataSource = tbMe.DataGridView1.DataSource = bsEnd Using