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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Enable styles

Thread ID:

Created:

Updated:

Platform:

Replies:

3947 Apr 20,2003 11:11 AM UTC Apr 24,2003 01:18 PM UTC WinForms 4
loading
Tags: GridControl
Jeremy Holt
Asked On April 20, 2003 11:11 AM UTC

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

Administrator [Syncfusion]
Replied On 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;

Jeremy Holt
Replied On 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

Administrator [Syncfusion]
Replied On 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.

Jeremy Holt
Replied On April 24, 2003 01:18 PM UTC

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;