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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change a table wide default font style to bold in WinForms GridControl?

Platform: WinForms |
Control: GridControl
Tags: styling

Font settings

When an attribute of a cell’s style is not explicitly set for that cell, the unset attribute is inherited from the standard style, the column style, or the row style. For a cell that does not have the Font.Facename property set, the Font.Facename property of the row style is checked, then the column style, and finally the standard style. So, to change the default setting, you can change the setting to the standard style. The standard style is the basestyle stored within the grid’s basestyle.


//Set the default style of the font to bold.
GridStyleInfo standard = this.gridControl1.BaseStylesMap["Standard"].StyleInfo;
standard.Font.Bold = true;


'Set the default style of the font to bold.
Dim standard As GridStyleInfo = Me.gridControl1.BaseStylesMap("Standard").StyleInfo
standard.Font.Bold = True

After applying the properties, the output looks as follows:

Default style of the text set to bold

Figure 1: Default style of the text set to bold


C#: Default font style

VB: Default font style


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile