Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
Changing Positions of Grid Columns
posted

Hi what I want to do is after hte user has dragged a column into a new position in the grid is rewrite my datatable with the new positions of the columns and then their corresponding rows. I know that sounds simple enough but having trouble finding the answer.

Any help appreciated. Thanks.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    May I ask why you want to recreate your data table? This seems like an odd thing to do based on the column positions in the grid?

    I don't think a DataTable has any easy way to rearrange columns, so you would probably have to remove the columns and re-add then. This would be a massive change to the data structure and cause all sorts of notification to be sent to bound controls, which would then get reset and probably lose their current state information.

Children