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
AD
Administrator
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
TR
Terence Rossow
May 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
AD
Administrator
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";
TR
Terence Rossow
May 9, 2006 11:00 PM UTC
Thanks, this did the trick.