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

cut/paste/undo/delete functionality for my grid control

Thread ID:





103284 Apr 18,2012 10:21 PM UTC Apr 24,2012 09:15 AM UTC WinForms 1
Tags: GridControl
Asked On April 18, 2012 10:21 PM UTC


I am trying a cut/paste/undo/delete functionality for my grid control. This is a winforms application

Could you pls tell me what events to write. This one should also work if the user presses Ctr+x.
Some sample code will be grt


Jeya Preetha M [Syncfusion]
Replied On April 24, 2012 09:15 AM UTC

Hi Thomas,

Thanks for your interest in Syncfusion Products.

To perform cut/paste/undo/delete functionality, please make use of "CurrentCellKeyDown" event.

this.gridControl1.CurrentCellKeyDown += new KeyEventHandler(gridControl1_CurrentCellKeyDown);

void gridControl1_CurrentCellKeyDown(object sender, KeyEventArgs e)

if (e.KeyCode == Keys.X && e.Control)
//Code here.
e.Handled = true;
To perform operation, when you press Ctrl+x, Ctrl+v, Ctrl+z, Ctrl+v please set "Keycode" and “e.handled=true”.

Please let me know if you have any concerns.

Jeya Preetha M


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

or the page will be automatically redirected to 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