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

GridDataControl Cut/Paste Rows

Thread ID:





105286 Sep 26,2012 12:03 AM UTC Nov 1,2012 06:50 PM UTC WPF 4
Tags: GridControl
Michael Philbrick
Asked On September 26, 2012 12:03 AM UTC


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 06:34 PM UTC

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 05:49 PM UTC

Once again, just what I needed. Thanks.

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

Hi Michael,

Thanks for the update.

Raja sekar.G    

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

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.

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