We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Default GridStyleInfo

Thread ID:





43834 May 4,2006 07:18 PM May 9,2006 07:00 PM Windows Forms 4
Tags: GridControl
Terence Rossow
Asked On May 4, 2006 07:18 PM

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

Administrator [Syncfusion]
Replied On May 5, 2006 12:59 AM

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

Terence Rossow
Replied On May 7, 2006 07:33 PM

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

Administrator [Syncfusion]
Replied On May 8, 2006 08:39 AM

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";

Terence Rossow
Replied On May 9, 2006 07:00 PM

Thanks, this did the trick.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.