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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can not change the background of Column Header cell

Thread ID:

Created:

Updated:

Platform:

Replies:

51627 Nov 9,2006 06:04 PM UTC Nov 10,2006 04:14 AM UTC WinForms 1
loading
Tags: Grouping
jamesb
Asked On November 9, 2006 06:04 PM UTC

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

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.

Warning Icon 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.Close Icon

;