سلام . ابتدا خاصیت MultiSelect رو برابر False کنین.
بعش هم کد زیر رو در رویداد KeyDown تکست باکستون بنویسید.
switch (e.KeyCode) {
case Keys.Down:
int rov = DataGridView1.CurrentCell.RowIndex;
int kolumn = DataGridView1.CurrentCell.ColumnIndex;
DataGridView1.Rows[(rov + 1)].Cells[kolumn].Selected = true;
break;
case Keys.Up:
int rov = DataGridView1.CurrentCell.RowIndex;
int kolumn = DataGridView1.CurrentCell.ColumnIndex;
DataGridView1.Rows[(rov - 1)].Cells[kolumn].Selected = true;
break;
case Keys.Left:
int rov = DataGridView1.CurrentCell.RowIndex;
int kolumn = DataGridView1.CurrentCell.ColumnIndex;
DataGridView1.Rows[rov].Cells[(kolumn - 1)].Selected = true;
break;
case Keys.Right:
int rov = DataGridView1.CurrentCell.RowIndex;
int kolumn = DataGridView1.CurrentCell.ColumnIndex;
DataGridView1.Rows[rov].Cells[(kolumn + 1)].Selected = true;
break;
}
**یاعلی**