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

GGC the plus/minus sign customization ?

Thread ID:





86408 Jul 8,2009 04:37 PM UTC Jul 10,2009 12:37 PM UTC WinForms 1
Tags: GridControl
David Cui
Asked On July 8, 2009 04:37 PM UTC

Is the plus/minus image ? how can I change its' color of background. or replace it with other images.


Lingaraj S [Syncfusion]
Replied On July 10, 2009 12:37 PM UTC

Hi David,

Thank you for your interest in Syncfusion product.

If you want to change the BackColor or Change symbol of GroupCaptionPlusMinus cell in GridGroupingControl, then please try using QueryCellStyleInfo event in GridGroupingControl to achieve this behavior. The BackColor property is used to change the back color. The Description property is used to change the symbol in Plus/Minus button.

Refer the code below:

this.gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionPlusMinusCell)
e.Style.Description = "*";
e.Style.Description = e.TableCellIdentity.DisplayElement.ParentGroup.IsExpanded ? "*" : "/";
e.Style.BackColor = Color.Red;

Please let me know if you have any queries.

Lingaraj S.


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

This page will automatically be redirected to the 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