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
close icon

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.
Live Chat Icon For mobile
Up arrow icon