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.

GroupDropArea Colors

Thread ID:

Created:

Updated:

Platform:

Replies:

59737 Apr 20,2007 11:48 AM Apr 20,2007 01:55 PM Windows Forms 1
loading
Tags: GridControl
Jeremy Giannosa
Asked On April 20, 2007 11:48 AM

I would like to customize group drop area colors as show in the attached picture.

I was able to modify color on the splitter color and the bottom half of the group drop area but was unable to modify colors on the top half of the drop area and the shelf which holds the column headers that are being grouped

Thanks,
Jeremy

colors.zip

haneefm [Syncfusion]
Replied On April 20, 2007 01:55 PM

Hi Jeremy,

You can handle the PrepareViewStyleInfo event of the GridDropArea control to modify the colors in it. The code snippet is as follows.

this.gridGroupingControl1.GridGroupDropArea.PrepareViewStyleInfo +=new GridPrepareViewStyleInfoEventHandler(GridGroupDropArea_PrepareViewStyleInfo);

private void GridGroupDropArea_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
e.Style.BackColor=Color.Purple;
e.Style.TextColor= Color.White;
e.Style.Themed = false; //for group header cell....
}

Best regards,
Haneef

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.

;