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
Grid ItemsSource differ from visible columns
posted

Hi, 

i have an xamGrid in which i am assigning itemsSource to a customized datatable class that we created (contains columns, rows, dataview ...)

in my case the grid columns are dynamic. i can add and remove columns

when i change the itemsSource, i save the layout of the Grid using the persistence manager then i reload it when i change the itemsSource.

the added columns appear for a second then disappear when i reload the layout.

when i debug i find that the grid contains 3 columns while the itemsSource contains 5 items.

i thought i had a solution by saving each column's layout and reload it. but the layout is not reload it well (sorting, conditional formatting ...) while when saving the grid's layout, the layout is loaded but the columns are disappearing 

please advise