I am creating a variable number of RadGrids dynamically in code. Everything is working fine and as expected, except this one thing. I am trying to override the font for a particular column:
| GridBoundColumn codeCov = new GridBoundColumn(); | |
| codeCov.ItemStyle.Font.ClearDefaults(); | |
| codeCov.ItemStyle.Font.Names = new String[] { "Webdings2" }; | |
| codeCov.HtmlEncode = true; | |
| codeCov.HeaderText = "Code Cov"; | |
| codeCov.DataField = "IsCodeCov"; | |
| codeCov.ItemStyle.HorizontalAlign = HorizontalAlign.Center; | |
| codeCov.HeaderStyle.HorizontalAlign = HorizontalAlign.Center; | |
| rg.Columns.Add(codeCov); | |
The cell is being serialized correctly (I think):
<td align="center" style="font-family:Webdings 2;">P</td>
(This should show up as a check-mark)
Yet the font is not displayed in the Webdings 2 font on the web page. I wonder if the style for the row is overriding the cell?
The page contains a RadSkinManager and the skin is set to Web20.
Appreciate any help you can provide.
Regards,
Louis