Home › Forums › WinForms controls › Xceed Grid for WinForms › Activating edit mode with custom key › Reply To: Activating edit mode with custom key
<pre>grid.KeyDown += new KeyEventHandler(gridKeyDown);
private void gridKeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.Enter) {
Cell cell = grid.CurrentCell;
if (cell != null) cell.EnterEdit();
}
}</pre>
Imported from legacy forums. Posted by Tommy (had 182 views)