Can not change the background of Column Header cell

When I drag a ggc on a form, the default column header style used to resemble that of the windows listview, with a white background and which hightlight the bottom border with yellow when the mouse is over the header.

I am using 4.4 and the column header of the ggc seems to be taking the default color of the windows form background, which is 'Color.Control'.

I have tried unsuccessfully to change the header style (background color) thru code and the column header of the ggc continues to have this silver background!

1 Reply

AD Administrator Syncfusion Team November 10, 2006 04:14 AM UTC

Hi James,

Before Changing the Backcolor of the header cell, you need to change the Themed property of the Header cell to false. Here is a code snippet.

this.grid.TableDescriptor.Appearance.AnyHeaderCell.Themed = false;
this.grid.TableDescriptor.Appearance.AnyHeaderCell.BackColor = Color.AliceBlue;

Best Regards,
Haneef

Loader.
Up arrow icon