I have a RadGridView populated with data. I have some input controls that allow the user to change the font of the text in the header rows. I tried the following in the code-behind, but it did not work. What is the correct way to do this?
System.Windows.Style headerStyle = new Style();
headerStyle.BasedOn = reportGrid.Columns[0].HeaderCellStyle;
headerStyle.TargetType = typeof(GridViewHeaderCell);
headerStyle.Setters.Add(new Setter(GridViewHeaderCell.FontSizeProperty, 25));
reportGrid.Columns[0].HeaderCellStyle = headerStyle;
Kind Regards,
Albert
System.Windows.Style headerStyle = new Style();
headerStyle.BasedOn = reportGrid.Columns[0].HeaderCellStyle;
headerStyle.TargetType = typeof(GridViewHeaderCell);
headerStyle.Setters.Add(new Setter(GridViewHeaderCell.FontSizeProperty, 25));
reportGrid.Columns[0].HeaderCellStyle = headerStyle;
Kind Regards,
Albert