Last Updated: 17 Aug 2020 15:17 by ADMIN
Created on: 13 Aug 2020 06:45
Category: DataGrid
Type: Bug Report
Custom Font not working


The DataGrid does support or response to Custom Font set Using the ExportFont Attribute. But when a contentTemplate is used and a label control is place in it. The font shows on the label but not on the Header or Content of the Grid.

1 comment
Posted on: 17 Aug 2020 15:17

Hello Oluwagbenga,

Indeed, DataGrid will not take into account the custom font - this is due to the fact that we're using Skiasharp library for rendering the DataGrid and Skia cannot properly apply the font.  I've updated the status of this item to "Declined" as there is not suitable solution from our side.  

As a workaround for the column headers you can set a template of your own with a Label element. For example instead of setting HeaderText:

		<Label Text="your text" FontFamily="MyFont" />

You can also utilize the new CellContentTemplate and CellEditTemplate properties of the DataGrid columns and set custom content.

I am sorry for any inconvenience caused.

Progress Telerik