Has anyone created a good way to have up and down button for a grid.
I have a grid with a list of items that my user would want to order. When they click the Up button the grids current row moves up one row, trading placed with the row above it. Of course the opposite is true with the down button.
I'm trying to use a "sort_order" column with numbers 1 through the childrow count. The buttons' click event edits the current gridrow and the one above it, changing their sort_order field accordingly. However, I'm running into problems when setting the column values. It seems as though I can change the current row, but when I change the previous row the current row's cell value changes back and the previous row doesn't change.
Any ideas .. really, any ideas at all.