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

Enable styles

Is there anyway to EnableThemes and yet override the colours of the column and row headers? Thanks Jeremy

4 Replies

AD Administrator Syncfusion Team April 20, 2003 12:57 PM

You have to change the CellType from "Header".
GridStyleInfo style = gridControl1.BaseStylesMap["Header"].StyleInfo;
style.CellType = "Static";
style.BackColor = Color.Red;
style.CellAppearance = GridCellAppearance.Raised;


UN Unknown Syncfusion Team April 23, 2003 10:53 AM

Changing the style to Static and Appearance to Raised works fine. However, I can see no way of getting rid of the spaces between the header cells - changing the border style/border colours changes the internal borders. I am trying to achieve a flat effect for the header, but I also want Themes to be enabled. Is there no way to do this? Thanks Jeremy


AD Administrator Syncfusion Team April 24, 2003 02:51 AM

I don't know of a simple way to do this. You can handle the DrawCell event and draw the complete header yourself, or you can derive a cell control that draws a colored header cell.


UN Unknown Syncfusion Team April 24, 2003 08:18 AM

Could I make this a "feature" request - flat cells with ThemesEnabled? Thanks Jeremy

Loader.
Live Chat Icon For mobile
Up arrow icon