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