Jiggerman75
Member
- Joined
- May 12, 2008
- Messages
- 5
- Programming Experience
- Beginner
Hello
I am trying to search a name of a customer in a datagridview through a textbox but i have this code
Private Sub btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn.Click
Dim i As Integer
If DataGridView1.CurrentRow.Cells.Item(0).Value = txtsearchcustomer.Text Then
For i = 0 To CustomerBindingSource.Count - 1
Next
Exit Sub
End If
CustomerBindingSource.MoveNext()
End Sub
all this is doing is allowing me to search manualy by pressing the search button untill i reach the desired result
please could someone help me solv this matter as i am starting to stress out
I am trying to search a name of a customer in a datagridview through a textbox but i have this code
Private Sub btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn.Click
Dim i As Integer
If DataGridView1.CurrentRow.Cells.Item(0).Value = txtsearchcustomer.Text Then
For i = 0 To CustomerBindingSource.Count - 1
Next
Exit Sub
End If
CustomerBindingSource.MoveNext()
End Sub
all this is doing is allowing me to search manualy by pressing the search button untill i reach the desired result
please could someone help me solv this matter as i am starting to stress out