i m using these code for selecting data grid row
While i <= DataGridView1.Rows.Count - 1 If Trim(DataGridView1.Rows(i).Cells(0).Value) = Trim(TextBox1.Text) Then DataGridView1.Rows(i).Selected = True Exit While End If i = i + 1 End While
it's working nice.
but , when no of row more then grid showing rows then grid not show selected row in grid screen, for showing selected row we have to use scroll bar,
my problem is how to show selected row in grid automatically