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.

Changing header font color on a GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

48462 Aug 28,2006 05:43 PM Aug 30,2006 04:02 PM Windows Forms 2
loading
Tags: GridControl
Charlie Mao
Asked On August 28, 2006 05:43 PM

Hi,

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

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

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

Regards,
Rajagopal

Charlie Mao
Replied On August 30, 2006 04:02 PM

Worked Great!! Thanks

CONFIRMATION

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.

;