I want move the focus cell to another cell in datagridview (i.e) cell to cell like for entire datagridview.
My following coding has done it for only one row.
for loop is not suitable for my requirement, because i am creating row at runtime only. so it takes rowcount= 1.
private void dataGridView1_KeyUp(object objSender, KeyEventArgs objArgs)
if (dataGridView1.CurrentCell.ColumnIndex == 0)
int p = new int[dataGridView1.Rows.Count - 1];
for (int i = 0; i <= p.Length; i++)
dataGridView1.CurrentCell = dataGridView1.Rows[i].Cells;
Is there any possible for entire datagridview.?