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
close icon

GGC the plus/minus sign customization ?


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

david

1 Reply

LS Lingaraj S Syncfusion Team 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.

Regards,
Lingaraj S.

Loader.
Live Chat Icon For mobile
Up arrow icon