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.

GridDataControl Cut/Paste Rows

Thread ID:





105286 Sep 25,2012 08:03 PM Nov 1,2012 02:50 PM WPF 4
Tags: GridControl
Michael Philbrick
Asked On September 25, 2012 08:03 PM


Previously you showed me how to use drag/drop to reposition rows in a grid.

I now need to do the same via a context menu. The goal is to have the Cut option as well as the keyboard shortcut remove the entire row from the grid as opposed to emptying the contents of the row. The Paste option should insert the cut row above the currently selected row.

Ultimately it would be great if the Cut row would remain in place until the paste operation but be highlighted (dimmed, etc) until Esc is pressed or the Paste operation is completed. I can then use the ObservableCollection.Move method to reposition the row.

I tried to override the Cut option in the context menu but the behavior was still the default. I also need the keyboard shortcuts to show on the menu along with the command description.

Would you please provide me with sample code? Most likely the row will be in read-only mode but it would be nice to have the option of making it work in both cases.

Rajasekar G [Syncfusion]
Replied On September 30, 2012 02:34 PM

Hi Michael,


Thank you for using Syncfusion products.


We have analyzed your query .We have prepared a sample based on this and it can be download from the following location.


Sample Location: GridDataControlSample.zip


Please let us know if you have any questions.



Raja sekar.G

Michael Philbrick
Replied On October 10, 2012 01:49 PM

Once again, just what I needed. Thanks.

Rajasekar G [Syncfusion]
Replied On October 15, 2012 06:08 PM

Hi Michael,

Thanks for the update.

Raja sekar.G    

Rajasekar G [Syncfusion]
Replied On November 1, 2012 02:50 PM

Hi Michael,


Thank you for your update.



Raja sekar.G


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.