Forums - C# Corner

Forum guidelines
Priyanka Kumari

Priyanka Kumari

  • 1.7k
  • 88
  • 3.5k

code to set cursor in datagridview first cell in c#

Sep 20 2018 6:25 AM
dataGridView1.Rows.Add();
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[1];
dataGridView1.CurrentCell.Selected = true;
dataGridView1.BeginEdit(true);
 
I have tried above code,now how i will set cursor on my first cell.
 
Plz help me out 

Answers (3)