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 05:57 PM UTC

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 03:53 PM UTC

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 07:51 AM UTC

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 01:18 PM UTC

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

Loader.
Up arrow icon