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
5520
adding property to datasource and reloading layout
posted

hi,

i am trying to preserve the layout of an xamgrid after adding a property to the itemssource (adding a column).

so what i did was to save the layout, add the column (a property in the itemssource) then reloading the layout.

when i reload the layout, no columns are appearing in the grid. 

is there a way to do it?

thanks

Parents
No Data
Reply
  • 5520
    Verified Answer
    posted

    ok i figured it out.

    instead of saving the layout of the grid, save the layouts of the columns in a dictionary. then after setting the new datasource and InvalidateData,  go through the dictionary and load the columns layout.

     

Children
No Data