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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Default GridStyleInfo

Thread ID:





43834 May 4,2006 11:18 PM UTC May 9,2006 11:00 PM UTC WinForms 4
Tags: GridControl
Terence Rossow
Asked On May 4, 2006 11:18 PM UTC

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

Terence Rossow
Replied On 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

Administrator [Syncfusion]
Replied On 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";

Terence Rossow
Replied On May 9, 2006 11:00 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon