This question is locked. New answers and comments are not allowed.
I have extended the RadGridView in my own code by creating a class and inheriting RadGridView.
I have created the RadGridViewEx (as I've called it) on my MainPage.xaml and have it set to AutoGenerateColumns=True.
The problem I am running into is that my database columns have a % sign in their name, and it's not binding the property correctly, so I've done a .Replace("%", "REPLACE_PCT") on the column that is coming from my WCF service and I'm attempting to change the e.Column.Header back to the format using .Replace("REPLACE_PCT", "%") in the OnAutoGeneratingColumn event that I've overridden and it doesn't seem to have any affect on the GridView.
I can actually set up any AutoGenerated columns and attempt to change the e.Column.Header and it will have no affect on the UI end.
To demonstrate this, set up a RadGridView that has AutoGenerateColumns set to True, and bind it to a collection of any custom object (like Person for example). Set up an override on OnAutoGeneratingColumns event and attempt to change e.Column.Header to some new value before calling base.OnAutoGeneratingColumn(e);. I would expect to see my new Header as part of the GridView but the UI stays the same and matches the UniqueName (property name) of my object.
Am I doing something wrong?
I have created the RadGridViewEx (as I've called it) on my MainPage.xaml and have it set to AutoGenerateColumns=True.
The problem I am running into is that my database columns have a % sign in their name, and it's not binding the property correctly, so I've done a .Replace("%", "REPLACE_PCT") on the column that is coming from my WCF service and I'm attempting to change the e.Column.Header back to the format using .Replace("REPLACE_PCT", "%") in the OnAutoGeneratingColumn event that I've overridden and it doesn't seem to have any affect on the GridView.
I can actually set up any AutoGenerated columns and attempt to change the e.Column.Header and it will have no affect on the UI end.
To demonstrate this, set up a RadGridView that has AutoGenerateColumns set to True, and bind it to a collection of any custom object (like Person for example). Set up an override on OnAutoGeneratingColumns event and attempt to change e.Column.Header to some new value before calling base.OnAutoGeneratingColumn(e);. I would expect to see my new Header as part of the GridView but the UI stays the same and matches the UniqueName (property name) of my object.
Am I doing something wrong?