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.