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

Need to remove pluminus symbol

Hi,

I have populated nested table in my Grid Grouping Control.
I have removed the plus symbol next to it using the below code. But I could see that records are in expaned mode.

GridGroupingControl1.TableDescriptor.TableOptions.ShowRecordPlusMinus = false;

I need to remove the plus symbol and have my records in Collapsed mode so that I can programatically expand it when required.

Can you help on this..

Thanks.


1 Reply

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.


Loader.
Live Chat Icon For mobile
Up arrow icon