c# datagridview – set focus on a particular row

Updated on     Kisan Patel

Problem:

How to set focus on a particular row in c# datagridview/gridview?
How to set focus to a particular cell in datagridview?
Set focus to a row in datagridview that has been newly inserted or updated?

Solution:

try

dataGridView1.Focus();
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[2];

C#