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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to not showing Plus/Minus sign for grouping control ?

Thread ID:





84447 Jun 30,2009 08:55 PM UTC Jul 6,2009 01:23 PM UTC WinForms 3
Tags: GridControl
David Cui
Asked On June 30, 2009 08:55 PM UTC


How to disable the Plus/Minus sigh for the grouping ?
Some how I use the following to disable it this.ChildGroupOptions.ShowCaptionPlusMinus = false, It works, but it default to Expanded mode, which I don't expect.

My purpose is to still keep the group expandable and collapsible without showing the plus minus sign (alternative, double click the row to expand or shrink).


Jisha Joy [Syncfusion]
Replied On July 1, 2009 06:19 AM UTC

Hi David,

You could follow the technique in sample "Nested Tables-No Indent Demo" to achieve the desired behavior. This sample allows you to display nested tables in a Grid Grouping control without indenting the children of the records in the parent table. You could hide the default Record Plus-Minus buttons and having them in the same level as the parent.The TableControlCellClick event is responsible for expanding and collapsing the record. You could access the sample from the below location:

..\\My documents\syncfusion\essentialstudio\\Windows\Grid.Grouping.Windows\Samples\2.0\Appearance\Nested Table-No Indent Demo\cs

Please let me know if this helps.

Thank you for using Syncfusion products.


David Cui
Replied On July 1, 2009 01:22 PM UTC


maybe i didn't make myself clear:
firstly I didn't use 7.x version yet, i am in 4.2 version.
seconldy, my question is querying the grouping tables (my data source is not nested table). Is that doable ?


Rajadurai C [Syncfusion]
Replied On July 6, 2009 01:23 PM UTC

Hi David,

Thanks for your interest in Syncfusion Products.

1) If you would like to disable the groupcaptionplusminuscell, please try to set its celltype to "Static" in QueryCellStyleInfo event. Here is the code for your reference.

this.gridGroupingControl1.QueryCellStyleInfo += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);

void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity.TableCellType == Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellType.GroupCaptionPlusMinusCell )
e.Style.CellType = "Static";

2) It is possible to query any group through handling QueryCellStyleInfo event. Please refer to the following code that checks for the grouplevel 2(i.e., second group in the table) and set its caption text as "Hello".

if (e.TableCellIdentity.TableCellType == Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellType.GroupCaptionCell)
if (e.TableCellIdentity.DisplayElement.GroupLevel == 2)
e.Style.Text = "Hello";



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon