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
420
Columns and Layout
posted

I have a functionality wherein I save the layout files in database as xml and then user can change the layouts at the run time. This is basically to hide / unhide many columns and user can have many views of the grid.

Now suppose the layout1 saved in database has 5 columns. Later on we added 2 more columns to the grid. These 2 new columns are not present in the layout1 that is saved. Now when we load the layout1, these 2 columns are visible although they are not present in the xml file (I checked that). So basically, i guess if the columns are not present in the layout file, by default the grid control makes them visible.

Is there a way to fix this?