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.
I need a help in identifying a summary row of grouping grid in querycellstyleinfo event as i dont want a delete image button to set for that summary row cell.
ADAdministrator Syncfusion Team March 31, 2008 08:38 PM UTC
Hi Gomathi,
Please try the below code snippet to identify the summary row of the GroupingGrid in QueryCellStyleInfoevent.
void GridGrpCtrl_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) { Element el = e.TableCellIdentity.DisplayElement; if (el != null && el.Kind == DisplayElementKind.Summary && e.TableCellIdentity.SummaryColumn != null) { //Get the Name of Summary using the e.TableCellIdentity.SummaryColumn.Name property; object o = e.Style.Text; } }
Please let me know if this helps.
Best regards, Johnson
GOGomatiApril 1, 2008 03:57 AM UTC
Hi Jhonson,
This doesnt work for my requirement. It makes all cell in summary column with same style where as i want only cell of that summary column and that summary row.I want to catch row also which is important as good as my summary column.
Thanks, Gomati
>Hi Gomathi,
Please try the below code snippet to identify the summary row of the GroupingGrid in QueryCellStyleInfoevent.
void GridGrpCtrl_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) { Element el = e.TableCellIdentity.DisplayElement; if (el != null && el.Kind == DisplayElementKind.Summary && e.TableCellIdentity.SummaryColumn != null) { //Get the Name of Summary using the e.TableCellIdentity.SummaryColumn.Name property; object o = e.Style.Text; } }
Please let me know if this helps.
Best regards, Johnson
GOGomatiApril 1, 2008 04:10 AM UTC
Hi Jhonson,
I tried to use same element but build some different logic and it worked. Thanks a lot for your help.
Thanks, Gomati
>Hi Jhonson,
This doesnt work for my requirement. It makes all cell in summary column with same style where as i want only cell of that summary column and that summary row.I want to catch row also which is important as good as my summary column.
Thanks, Gomati
>Hi Gomathi,
Please try the below code snippet to identify the summary row of the GroupingGrid in QueryCellStyleInfoevent.
void GridGrpCtrl_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) { Element el = e.TableCellIdentity.DisplayElement; if (el != null && el.Kind == DisplayElementKind.Summary && e.TableCellIdentity.SummaryColumn != null) { //Get the Name of Summary using the e.TableCellIdentity.SummaryColumn.Name property; object o = e.Style.Text; } }