We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

42350 Mar 27,2006 01:49 PM Mar 28,2006 08:49 AM Windows Forms 2
loading
Tags: GridControl
Ken Overton
Asked On March 27, 2006 01:49 PM

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?

Administrator [Syncfusion]
Replied On March 28, 2006 01:00 AM

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.

Ken Overton
Replied On March 28, 2006 08:49 AM

Yes, it looks good. Thanks!

CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;