Hi,
I using AppStyling using self created resources and setting the UltraListView.ViewSettingsDetails.ColumnHeaderAppearance.StyleResourceName property for an UltraListView on an inherited form (the UltraListView is on the base form). When I use LoadFromXML on the UltraListView the ColumnHeaders to not retain the style resource and revert to the default appearence. I have tried to set the StyleResourceName property after I load the XML file but still no luck.
Has anyone had this problem before? Anyone have a solution the getting the UltraListView Column headers to either retain the StyleResource or acquire it again after loading the XML file?
Thanks.
You might want to try adding this line of code prior to setting the StyleResourceName:
UltraListView.ViewSettingsDetails.ColumnHeaderAppearance.Reset();
It soulds like there are properties set on the ColumnHeaderAppearance, and when you set the StyleResourceName, I think it only merges in the AppStyling appearance, not overwrites it.
Thanks for the try Brian but no luck. I have even tried to not redefine the columns if I am going to LoadFromXML, but still no luck. What suprises me is that the StyleResourceName for column headers is saved (correctly?) in the XML file. It just seems that the UltraListView control is not applying it when it loads from the XML file.