This question is locked. New answers and comments are not allowed.
I have a RadGridView with AutoGenerateColumns set to true. I want to add an additional column as the last column programatically.
What event is the best event on the RadGridView to listen to for this?
RadGridView.DataLoaded does not work, as this fires before the auto generated columns are created, placing my column before them.
RadGridView.AutoGeneratingColumn does not work, as I don't know how many columns my grid will have.
The best event I've found is RadGridView.SelectionChanged, as this will get fired once the grid is fully set up. But man this feels hacky and dirty.
I wish RadGridView had an AutoGeneratedColumns event, that fired after all the auto generated columns were created.
This thread: http://www.telerik.com/community/forums/silverlight/gridview/event-to-add-column-at-the-end.aspx
has an example that uses the DataLoaded event. The problem is the grid in the sample is not using auto generated columns.
I am using Telerik Controls version 2010.2.812.1040
What event is the best event on the RadGridView to listen to for this?
RadGridView.DataLoaded does not work, as this fires before the auto generated columns are created, placing my column before them.
RadGridView.AutoGeneratingColumn does not work, as I don't know how many columns my grid will have.
The best event I've found is RadGridView.SelectionChanged, as this will get fired once the grid is fully set up. But man this feels hacky and dirty.
I wish RadGridView had an AutoGeneratedColumns event, that fired after all the auto generated columns were created.
This thread: http://www.telerik.com/community/forums/silverlight/gridview/event-to-add-column-at-the-end.aspx
has an example that uses the DataLoaded event. The problem is the grid in the sample is not using auto generated columns.
I am using Telerik Controls version 2010.2.812.1040