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

color of column header of Grid Control

hi,

i've 2 grids show in one form, one is using GDBG and the other one is Grid Control.

How to make the color of column header of Grid Control same as the GDBG column header's color?

Thanks!


1 Reply

HA haneefm Syncfusion Team December 31, 2007 05:11 PM UTC

Hi Lim,

Please try these code:

this.gridControl1.BaseStylesMap["Column Header"].StyleInfo.BackColor = this.gridDataBoundGrid1.BaseStylesMap["Column Header"].StyleInfo.BackColor;
this.gridControl1.BaseStylesMap["Row Header"].StyleInfo.BackColor = this.gridDataBoundGrid1.BaseStylesMap["Row Header"].StyleInfo.BackColor;
this.gridControl1.BaseStylesMap["Header"].StyleInfo.BackColor = this.gridDataBoundGrid1.BaseStylesMap["Header"].StyleInfo.BackColor;

Best regards,
Haneef


Loader.
Live Chat Icon For mobile
Up arrow icon