GDBG: Can I force ctl-x to behave as ctl-c?

I want to disable cut, only allowing copy and paste, but I''d rather just transparently make cut behave as a copy. Is this possible?

2 Replies

AD Administrator Syncfusion Team March 28, 2006 06:00 AM UTC

Hi Ken, Please try this code snippet which explains how to make the Control-X for Copy process using the CurrentCellKeyDown event. private void gridDataBoundGrid1_CurrentCellKeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if ((((e.KeyData & Keys.KeyCode) == Keys.X) && (Control.ModifierKeys & Keys.Control) != 0)) // (Keys.X) && ((Control.ModifierKeys & Keys.Control) != 0)) { this.gridDataBoundGrid1.Model.CutPaste.Copy(); e.Handled = true; } } Let us know if this helps. Best regards, Madhan.


KO Ken Overton March 28, 2006 01:49 PM UTC

Yes, it looks good. Thanks!

Loader.
Up arrow icon