有人可以提供帮助吗? 尝试使用绑定源
从数据网格视图中搜索数据我正在使用包含2个不同列的2个文本框进行搜索,但一次只能搜索一个
Private Sub RadioButton1_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles RadioButton1.CheckedChanged
StudenName.Enabled = False
StudentNo.Enabled = True
StudenName.Text = Nothing
End Sub
Private Sub RadioButton2_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles RadioButton2.CheckedChanged
StudenName.Enabled = True
StudentNo.Enabled = False
StudentNo.Text = Nothing
End Sub
这就是我需要输入搜索代码的地方
Private Sub Search_Click(sender As System.Object, e As System.EventArgs) Handles Search.Click
If StuNo.Checked = True Then
'search code
Else
'search code
End If
End Sub
我在其他主题中读到的是使用绑定源find和filter,
我正在使用visual studio 10并以数据库形式访问