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!
(eMessage == Code.AppMessages.ListCompleteMessage.enMessage.GenericTable)
RadGridView oDG =
//default to the element pivot
(vm.eCurrentView == ViewModels.TreePivotVM.enView.Label)
//get the label pivot grid
oCol.Header = oCol.Header.ToString().Replace(
(oCol.DisplayIndex == 0)
oCol.Width = Telerik.Windows.Controls.GridViewLength.Auto;
oCol.MaxWidth = 200;
oCol.TextAlignment = TextAlignment.Right;
//oCol.HeaderCellStyle = (Style)Application.Current.Resources["TelerikHeaderCellStyle"];
oCol.CellStyle = (Style)Application.Current.Resources[
Any suggestions will be greatly appreciated. I would also like to format the numbers in the cells in columns > 0