我尝试为数据网格创建类似字符的搜索。我的代码工作但是发生了一些事情,导致我收到这个错误,我的datagridadapter知道可能发生了什么以及如何修复?错误说TableAdapter不是我表单的一部分,但它是
Private Sub TextBox1_Search_TextChanged(sender As Object, e As EventArgs) Handles TextBox1_Search.TextChanged
Dim Search As String = "%" + TextBox1_Search.Text + "%" ' Declare a Search String So We Can Search By Wildcard % Like
Me.VisitorlogTableAdapter.FillBySearchByNameAndSignOutNull(Me.DataSet21.Visitorlog, Search, Search)
End Sub