The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi there,
I need to change the default style info of a grid. I tried overriding the GetDefaultStyle function of StyleInfoBase, but I can''t figure out a way to get my grid to use the overridden GridStyleInfo class. Is there a simple way to do this?
Cheers,
TERRY ROSSOW
ADAdministrator Syncfusion Team May 5, 2006 04:59 AM UTC
Hi Terry,
Please refer to the below forum thread for more details.
http://www.syncfusion.com/support/forums/message.aspx?MessageID=39135
Please let me know if this helps.
Best Regards,
Haneef
TRTerence RossowMay 7, 2006 11:33 PM UTC
Hi Haneef,
Thanks for the reply. This example shows how to add custom properties to a GridStyleInfo - but what I actually want to do is change the default font of a grid. Thus, when you apply no style to a grid cell, I want to force the grid to use Arial font by default.
Thanks,
TERRY ROSSOW
ADAdministrator Syncfusion Team May 8, 2006 12:39 PM UTC
Try setting your new defaults on the standard style to see if that does what you want.
this.gridControl1.BaseStylesMap["Standard"].StyleInfo.Font.Facename = "Arial";