the next row by using the arrow keys while the DataGridView is in editable mode. I've used the following code snippet, but it doesn't work for me. Can anyone help me to sort out this issue? if (canedit = true && e.KeyCode == Keys.Down || e.KeyCode == Keys.Up) { e.Handled = true; e.SuppressKeyPress = true; } in here canedit is a boolean value
void dataGridView1_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyData & Keys.KeyCode) { case Keys.Up: case Keys.Right: case Keys.Down: case Keys.Left: e.Handled = true; e.SuppressKeyPress = true; break; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)