this.gridGroupingControl1.TableControl.KeyDown += TableControl_KeyDown;
private void TableControl_KeyDown(object sender, KeyEventArgs e)
{
bool controlKeyDown = (e.Modifiers & Keys.Control) != Keys.None;
if (e.KeyCode == Keys.Z && this.gridGroupingControl1.TableControl.CurrentCell.IsModified)
{
e.Handled = true;
}
} |
grid.TableControl.CurrentCellKeyDown += (s, e) => {
e.SuppressKeyPress = e.Control && e.Alt && e.KeyCode == Keys.Z && (s as GridTableControl).CurrentCell.IsModified;
};
best regards.
Adam