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?