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.
Up arrow icon