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.
Hi Hanneef, i need some help with summary rows, i need to get the values from one summary row, to be able to use them in another summary row, please refer to the example i attached....
RARajagopal Syncfusion Team June 7, 2007 11:21 PM UTC
Hi Mario,
Please try the code below to get the values from a summary row.
foreach (Element el in gridGroupingControl1.Table.DisplayElements) { if (el is GridSummaryRow) { GridSummaryRow sr = el as GridSummaryRow; if (sr != null) { foreach (GridSummaryColumnDescriptor scd in sr.SummaryRowDescriptor.SummaryColumns) { Console.WriteLine("{0} = {1}", scd.Name, GridEngine.GetSummaryText(sr.ParentGroup, scd)); } } } }
Let me know if this helps. Regards, Rajagopal
MMMario MojašJune 8, 2007 06:46 AM UTC
>Hi Mario,
Please try the code below to get the values from a summary row.
foreach (Element el in gridGroupingControl1.Table.DisplayElements) { if (el is GridSummaryRow) { GridSummaryRow sr = el as GridSummaryRow; if (sr != null) { foreach (GridSummaryColumnDescriptor scd in sr.SummaryRowDescriptor.SummaryColumns) { Console.WriteLine("{0} = {1}", scd.Name, GridEngine.GetSummaryText(sr.ParentGroup, scd)); } } } }
Let me know if this helps. Regards, Rajagopal
hmmm... i'm still lost :), could you please expand my example with the snippet, so i can actually understand and see how it works.. Thanx!
ADAdministrator Syncfusion Team June 8, 2007 01:58 PM UTC
Here is your sample back using QueryCellStyleInfo to combine the 2 summaries values into a summary in a different row.