This question is locked. New answers and comments are not allowed.
I have a radgridView that is based on a pivot table, that is the number of columns is based on the query and cannot be defined. To do this I use your data table construct, this works fine however I need to wrap the text in the header, it is up to 500 characters long.
My latest attempt to fail is trying to apply a style to the header!
Any suggestions will be greatly appreciated. I would also like to format the numbers in the cells in columns > 0
My latest attempt to fail is trying to apply a style to the header!
private void GridLoaded(Code.AppMessages.ListCompleteMessage.enMessage eMessage){ if (eMessage == Code.AppMessages.ListCompleteMessage.enMessage.GenericTable) { RadGridView oDG = this.RGV1;//default to the element pivot if (vm.eCurrentView == ViewModels.TreePivotVM.enView.Label) { oDG = this.RGVLabel;//get the label pivot grid } foreach (GridViewColumn oCol in oDG.Columns) { oCol.Header = oCol.Header.ToString().Replace("_", " "); if (oCol.DisplayIndex == 0) { oCol.Width = Telerik.Windows.Controls.GridViewLength.Auto; } else { oCol.MaxWidth = 200; oCol.TextAlignment = TextAlignment.Right; //oCol.HeaderCellStyle = (Style)Application.Current.Resources["TelerikHeaderCellStyle"]; oCol.CellStyle = (Style)Application.Current.Resources["TelerikReportCellStyle"]; } } }}Any suggestions will be greatly appreciated. I would also like to format the numbers in the cells in columns > 0
