0
你好,這裏是我的代碼在文本搜索改變事件..請幫助我,它給出了一個OPERAND錯誤後失去身份證。你能告訴我它是什麼嗎?謝謝你的幫助。在vb.net中爲Datagridview搜索代碼
Private Sub txtSearch_TextChanged(sender As Object, e As EventArgs) Handles txtSearch.TextChanged
Dim dv As New DataView(dt)
If optName.Checked = True Then
dv.RowFilter = String.Format("Student Name Like ' %{0}% '", txtSearch.Text)
DataGridView1.DataSource = dv
End If
If optID.Checked = True Then
dv.RowFilter = String.Format("Student ID Like ' %{0}% '", txtSearch.Text)
DataGridView1.DataSource = dv
End If
End Sub
http://stackoverflow.com/questions/24778491/syntax-error-missing-operand-after-student-operator –
的可能重複刪除''學生。 –
如果我輸入文本框。記錄不顯示任何結果... Datagridview是空的... – Kemmy