Grid drag and drop sorting changes

Hi, I have a grid of items which the user can drag and drop but after doing something on the page, it reverts the drag and drop changes. My grid is based on an ArrayList and I thought I may have to update the list sort order based on the grid. How do I iterate over the GridListDataView to then update my List for the grid? If you think that this is not the problem, please let me know.

That’s the problem. You have to store the new position of the item in the drop event