Preserve Userdata on column drag.


Hi



I have enabled the user to drag columns to change  their order. But editing the columns doesnt happen properly. It updates the column with the old index.  I thought one reason might be that some of the columns have userdata associated to it. Is there anyway to refresh the userdata when the columns are dragged. Or is the problem due to soem other reason.



Gayathri.

I thought one reason might be that some of the columns have userdata associated to it
The userdata assigned to rows only, so it must not be affected by column moving.
Beware, that column indexes not changed after column reordering ( the column linked to the position in grid, not to actual column ) , you may try to use column IDs if you need a ability to call commands against specific columns.