Background colour of "ColumnHeader" cell in GGC

Hi,

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.

Thanks,
Vinod


2 Replies

JS Jeba S Syncfusion Team 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\5.2.0.25\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,
Jeba.




VI Vinod November 14, 2007 05:21 AM UTC

Thanks a lot Jeba.

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


Cheers,
Vinod


Loader.
Up arrow icon