how can i move the cursor of the datagridview on the selected rows on datagridview.
i used this code and it highlight the rows which matches to txtSearch but the cursor did not move in the selected rows.
Thanks in advanceCode:For x As Integer = 0 To Me.Datagrid.Rows.Count - 1 If UCase(Me.Datagrid.Item(1, x).Value.ToString) = Trim(Me.txtSearch.Text) Then Me.Datagrid.Rows(i).Selected = True Exit Sub End If Next




Reply With Quote