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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Background colour of "ColumnHeader" cell in GGC

Thread ID:





69808 Nov 13,2007 09:31 AM UTC Nov 14,2007 05:21 AM UTC WinForms 2
Tags: GridControl
Asked On November 13, 2007 09:31 AM UTC


I am using GridGroupingControl for Windows.
I want to change the background colour of "ColumnHeader" cell depending upon certain conditions. Please tell me how to do this ASAP.


Jeba S [Syncfusion]
Replied On November 13, 2007 11:53 AM UTC

Hi Vinod,

You can change the background color of "ColumnHeader" cell using Appearance.ColumnHeaderCell.BackColor property. Before setting this property you have to set the Themed property to false.

this.gridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.Themed=false; this.gridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.BackColor=Color.Yellow;

You can format the table cells conditionally using the GridConditionalFormatDescriptor. Please refer the browser sample under this category for more details.
{Installation Drive}\Documents and Settings\{USERNAME}\My Documents\Syncfusion\EssentialStudio\\Windows\Grid.Grouping.Windows\Samples\2.0\Appearance\ConditionalFormatting

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,

Replied On November 14, 2007 05:21 AM UTC

Thanks a lot Jeba.

It worked. I was wondering where it was getting overridden..



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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