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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





42350 Mar 27,2006 06:49 PM UTC Mar 28,2006 01:49 PM UTC WinForms 2
Tags: GridControl
Ken Overton
Asked On March 27, 2006 06:49 PM UTC

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 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.

Ken Overton
Replied On March 28, 2006 01:49 PM UTC

Yes, it looks good. Thanks!


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon