1 回答
慕九州3529262
TA贡献1条经验 获得超0个赞
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 BindingSource
da.Fill(tb)
bs.DataSource = tb
Me.DataGridView1.DataSource = bs
End Using
- 1 回答
- 0 关注
- 1235 浏览
添加回答
举报
0/150
提交
取消