when I do :
DataGridViewRow.Rows[index].Selected = true;
it however selects the row but the cursor(focus) is still pointing to the previous row..
When I manually enter in edit mode .. it highlights the cell of previous row..not on the row which done through coding..
However when I select the row through mouse then the cursor (focus) and selection works properly…
How should I manually select the row of datagridvie??
Regarding your second question “If I am adding any row how should I scroll the DataGridView so that the newly added row is in the visible area?”, just set the
FirstDisplayedScrollingRowIndexof theDataGridViewto your row’s index.