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.

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

Thread ID:





103284 Apr 18,2012 06:21 PM Apr 24,2012 05:15 AM Windows Forms 1
Tags: GridControl
Asked On April 18, 2012 06:21 PM


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 05:15 AM

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.

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.