Set focus to a row in datagridview that has recently been inserted or updated?

advertisements

How do I set focus to a row in datagridview that has been newly inserted or updated? So the one inserting/Updating doesnt have to go find the data that the user has inserted/updated.

Can I use this => (DataGridView - Can focus be placed on the blank row with the (*) using code?)


try,it might proof helpful to you,

     // dataGridView1.Rows[0].Cells[1].Selected = true;
dataGridView1.Focus();
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[2];

If it ends up with cross thread blah blah.. then just invoke new method.