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. Image for the cookie policy date

GroupDropArea Colors

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

1 Reply

HA haneefm Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon