The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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).
JJJisha Joy Syncfusion Team 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:
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 ?
David
RCRajadurai C Syncfusion Team 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);
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"; } }