Changing header font color on a GridDataBoundGrid

Hi,

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

2 Replies

AD Administrator Syncfusion Team 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;
//

Regards,
Rajagopal


CM Charlie Mao August 30, 2006 08:02 PM UTC

Worked Great!! Thanks

Loader.
Up arrow icon