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.

Can not change the background of Column Header cell

Thread ID:





51627 Nov 9,2006 01:04 PM Nov 9,2006 11:14 PM Windows Forms 1
Tags: Grouping
Asked On November 9, 2006 01:04 PM

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!

Administrator [Syncfusion]
Replied On November 9, 2006 11:14 PM

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,


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.