protected override void WndProc(ref Message m) { // but what if we get a CtrlV? // what about deleting from the menu? if (m.Msg == NativeMethods.WM_PASTE || m.Msg == NativeMethods.WM_CUT || m.Msg == NativeMethods.WM_CLEAR) { IsInEditOrNavigateMode = false; dataGrid.ColumnStartedEditing(Bounds); } base.WndProc(ref m); }
protected override void OnKeyPress(KeyPressEventArgs e) { if (!ReadOnly) { isnavigating = false; grid.ColumnStartedEditing(Bounds); } base.OnKeyPress(e); }