I use the two commands in the subject to load and save grid settings. I also have a routine that iterates through the column headings and sets the heading captions based on the user's language preference in our application. We do NOT use the .NET way of doing things in regard to languages. This is due to the nature of our product and the ability for our customers to have custom language sets. I didn't make the rules that's just the way it is.
The problem I am having is that the SaveFromXml saves the column headings and restores them back with the LoadFromXml. I've played with the PropertyCategories enum trying to get it to exclude the column headings caption but have not had success. Is there something I can set to save everything EXCEPT the column (and probably Group By) heading captions?
The other alternative is to Restore settings first and then call my routine to set the column headings. This is a little challenging due to alot of complicated factors revolving around grids in custom controls, inheritited forms and what each does independantly of each other. I won't get into all of that. All I want is for the grids to save everything except language specific things.
Hi,
No, there's no way to prevent the grid from saving or loading just the captions of the column headers. You will need to load your resources after the layout has been loaded.