Hi,
I use the SaveAsXml(...) & LoadFromXml(...) method to save & load column header position and column width (PropertyCategories.SortedColumn).
The caption text is also saved, that's why I have to localize the caption text of the header afterwards.
So I have attached an eventhandler to the InitializeLayout event. But there, it has no effect setting the caption property of the column header.
Thanks,
Michael
Hi Michael,
You need to make sure that you are setting the captions AFTER the layout is loaded. Are you under the impression that InitializeLayout fires after the layout is loaded? I don't think that's the case. InitializeLayout is for initializing the layout when you set the grid's DataSource. It doesn't fire again after loading the layout. So you need to set the captions in the same place you load the layout.