This example demonstrates how to swap two rows to move a specific row up or down
Question Comments
Added By: dsk96m at: 9/19/2013 9:07:54 AM
This code is great, but does not work if you delete a row. If I have 6 items in the list and I delete item 2, this code doesnt work. How do we make it work in that case. Also, the ordering doesnt work, the numbers change to like 10.5, etc.
Added By: dsk96m at: 9/19/2013 9:09:05 AMNevermind the second part of that. But how do we make this work so i can delete a row.
Added By: Faizan Mubasher at: 9/3/2015 12:37:12 AMThere is a problem! There are rows with dim and visible Expand buttons. Like, if there exist child row then expand button will be proper visible but dim otherwise just like normal grid behavior. But when rows are swapped, expand buttons doesn't change their state accordingly which is wrong and undesirable. Can you sort out the issue?
Added By: Alexey Z (DevExpress Support) at: 9/3/2015 12:55:13 AM Hello,I see that you have posted the same comment in the How to allow an end-user to move the rows in a grid up and down if the grid is bound to a DataTable article. So, I have created a new The E719 example does not work with Detail view thread on your behalf to process your recent post more efficiently.Added By: Faizan Mubasher at: 9/3/2015 1:03:24 AM
Another issue! What if the Row is expanded and we swap them?
Added By: Alexey Z (DevExpress Support) at: 9/3/2015 1:58:57 AM Hello,Let's continue our discussion in the The E719 example does not work with Detail view thread.