SR
Sri Rajan
Syncfusion Team
September 1, 2008 04:20 AM UTC
Hi Ankit,
Thank you for your interest in Syncfusion products.
You need to handle QueryCellStyleInfo event and set the celltype of the GroupCaptionPlusMinusCell Button as static, to hide the GroupCaptionPlusMinusCell Button. Here is the code which implements this task.
void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionPlusMinusCell)
{
e.Style.CellType = "Static";
e.Style.Borders.Bottom = new GridBorder(GridBorderStyle.Dotted, SystemColors.ControlDark);
}
}
Please let me know if this helps.
Best Regards,
Srirajan.