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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GroupDropArea Colors

Thread ID:

Created:

Updated:

Platform:

Replies:

59737 Apr 20,2007 03:48 PM UTC Apr 20,2007 05:55 PM UTC WinForms 1
loading
Tags: GridControl
Jeremy Giannosa
Asked On April 20, 2007 03:48 PM UTC

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

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.

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

;