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.

GGC the plus/minus sign customization ?

Thread ID:





86408 Jul 8,2009 12:37 PM Jul 10,2009 08:37 AM Windows Forms 1
Tags: GridControl
David Cui
Asked On July 8, 2009 12:37 PM

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 08:37 AM

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.

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.