As the RadGridView
is a complex control, it cannot be persisted out-of-the-box. This is why in our demo solutions we demonstrated how a custom PropertyProvider
can be defined for the RadGridView
class holds the logic that determines the RadGridView
persistence process. And in your case you need to examine the Columns Header
property persistence logic implementation. You can find it in the ProvideValue()
methods and you can modify it accordingly to your scenario.
I attached a sample solution where I persist the string representation of the RadGridView.Columns Headers
or an empty string if the Header property is null. It works for my scenario so please give it a try and let me know if it works for you as well. Also, if your RadGridView
definition is different and my approach doesn't work for you, please modify my solution to reproduce the issue, so that I can suggest another approach.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>