Font

How To Change font style, i used to changed it in properties but it doesnt worked

1 Reply

AA Arulraj A Syncfusion Team August 24, 2018 09:17 AM UTC

Hi Ramdhan, 

Thanks for contacting Syncfusion support. 

You can change the font style of the record by using SfDataGrid.Style.CellStyle.Font property. Please refer to the below code example and sample from the given location. 
Here we have provided sample to change the font style of the records and the column headers. 

Code Example : 
this.sfDataGrid.Style.CellStyle.Font = new GridFontInfo(new Font("Monotype Corsiva", 12)); 
this.sfDataGrid.Style.HeaderStyle.Font = new GridFontInfo(new Font("Monotype Corsiva", 13, FontStyle.Bold)); 
 
 
 
 
Please refer to the following UG link to customize the appearance of the SfDataGrid. 
 
 
Regards, 
Arulraj A 


Loader.
Up arrow icon