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

Changing header font color on a GridDataBoundGrid

Thread ID:





48462 Aug 28,2006 09:43 PM UTC Aug 30,2006 08:02 PM UTC WinForms 2
Tags: GridControl
Charlie Mao
Asked On August 28, 2006 09:43 PM UTC


Can someone tell me how to change the font color of the header on a GridDataBoundGrid.

Administrator [Syncfusion]
Replied On August 29, 2006 04:30 AM UTC

Hi Charlie,

You can do this by setting the BaseStylesMap property of the grid. Also, set the ThemesEnabled property to false.

this.gridDataBoundGrid1.ThemesEnabled = false;

this.gridDataBoundGrid1.Model.BaseStylesMap["Header"].StyleInfo.BackColor = Color.Plum;
this.gridDataBoundGrid1.Model.BaseStylesMap["Header"].StyleInfo.TextColor = Color.LightYellow;

this.gridDataBoundGrid1.Model.BaseStylesMap["Column Header"].StyleInfo.Font.Bold = true;


Charlie Mao
Replied On August 30, 2006 08:02 PM UTC

Worked Great!! Thanks


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