This question is locked. New answers and comments are not allowed.
I had radgridview.itemsource binding to a list of an object. And I know there are 14 columns, I just want to set the column header text after the grid has been loaded. This code worked when I had version 2009.2.701.1020 but as soon as I upgraded to version 2009.2.812.1030, after the code goes through and updates the header texts, the column names go back to "Column1" through "Column14". Why? How can I change the Column header text?!
| <telerikGridView:RadGridView x:Name="uxMyGrid" Width="Auto" MaxHeight="450" Visibility="Collapsed" AutoGenerateColumns="True" IsFilteringAllowed="False" ScrollMode="RealTime" |
| IsReadOnly="True" RowIndicatorVisibility="Collapsed" DataLoaded="uxMyGrid_DataLoaded" > |
| </telerikGridView:RadGridView> |
| public bool isGridInitialized = false; void uxMyGrid_DataLoaded(object sender, System.EventArgs e) |
| { |
| if (uxMyGrid.Columns.Count == 14 && !isGridInitialized) |
| { |
| for (int i = 0; i < ColumnHeaders.Count; i++) |
| { |
| uxMyGrid.Columns[i].Header = "Header Text"; |
| } |
| isGridInitialized = true; |
| } } |
