Is there a command to move / shift a selected record up or down single row? I have a context menu and buttons that need to do this. Using datapresenter and WPF 2010 Volume 1 (CLR 3.5)
Hello,
There is no direct way to do this from the XamDataGrid, however, you can use the Move() method of the underlying source collection, if it exposes one - for example ObservableCollection<T> does.
thanks, that was easy. One problem, I have a column "Index" and when I select the record to cut/copy and then paste, the "Index" value gets copied/cut/pasted with it, making the Index columns wrong. What is the easiest way to correct this. My records are bound to an ObservableCollection