Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142376 | Jan 30,2019 08:48 AM UTC | Feb 4,2019 05:05 AM UTC | WinForms | 5 |
![]() |
Tags: GridGroupingControl |
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
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.