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.
Unfortunately, activation email could not send to your email. Please try again.

row/col header backcolor

Thread ID:

Created:

Updated:

Platform:

Replies:

29754 Jun 2,2005 09:14 AM Jun 14,2005 12:27 PM Windows Forms 3
loading
Tags: GridControl
Andrew E
Asked On June 2, 2005 09:14 AM

I am trying to change the color of the row/col header on a gridcontrol. I have tried TableStyle.Interior but when I print the grid it still prints the default gradient design, any ideas?

Administrator [Syncfusion]
Replied On June 2, 2005 09:46 AM

The TableStyle does not apply to the headers. Instead, try setting grid.BaseStylesMap["Header"].StyleInfo.Interior (or BackColor).

Roumen Stoyanov
Replied On June 14, 2005 12:12 PM

Setting grid.BaseStylesMap["Header"].StyleInfo.BackColor didn''t work for me. The header stil displays grey (Control) and grid.BaseStylesMap["Header"].StyleInfo.Interior.BackColor is read only. Any other suggestions? Thanks. >The TableStyle does not apply to the headers. Instead, try setting grid.BaseStylesMap["Header"].StyleInfo.Interior (or BackColor).

Administrator [Syncfusion]
Replied On June 14, 2005 12:27 PM

That is the way to do it. Here is a sample. http://www.syncfusion.com/Support/user/uploads/Headers_e4adede6.zip Are you handling any events like PrepareViewStyleInfo or QueryCellInfo that might be interfering with setting the header backcolor? Also, if you are also setting the "Column Header" or "Row Header" basestyles, these will step on the "Header" basestyle setting. If you want to set a gradient header back color, then you should not set style.BackColor. Instead, set style.Interior where you can create a BrushInfo object that support gradients.

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.

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.

;