How do I find a row by the cell value in grid view based on my textbox input... I tried the below code but nothing works
Protected Sub Textbox1_TextChanged(sender As Object, e As System.EventArgs) Handles TextBox1.TextChanged
'For y As Integer = 0 To LocationGridView.Rows.Count - 1
' For x As Integer = 0 To LocationGridView.Columns.Count - 1
' If DataGridView.Rows(y).Cells(x).Value = TextBox1.Text Then
' LocationGridView.Rows(y).Cells(x).Style.Color = Color.Red
' End If
' Next
' For Each cell In LocationGridView.SelectedCells
' If Not FirstValue Then
' TextBox1.Text += cell.Value.ToString() & ", "
' Else
' TextBox1.Text += cell.Value.ToString()
' FirstValue = False
' End If
' Next
End Sub
Go to the complete details ...