SummaryRowDescriptor perfomance questions.

I have a couple of SummaryRowDescriptor. Can I declare a variable globally that reference a particular SummaryRowDescriptor Row and retrieve the calculation from within that SummaryRow or SummaryColumn directly instead of constantly doing this from QueryCellStyleInfo...

table = el.ParentTable as GridTable;
summaryRowDescriptor = table.TableDescriptor.SummaryRows["SpotSummaryRow"];
summaryColumn = summaryRowDescriptor.SummaryColumns["_Spot_TotalDollar"];

if (summaryColumn != null)
{
sd = summaryColumn.SummaryDescriptor;
if (sd != null)
{
int index = table.TableDescriptor.Summaries.IndexOf(sd);
ISummary sum = el.ParentGroup.GetSummaries(table)[index];
e.Style.Text = summaryColumn.GetDisplayText(sum);



}
}

1 Reply

AD Administrator Syncfusion Team February 15, 2007 11:32 PM UTC

Hi James,

You can globally declare the summary row descriptor and get the summary value using the GetSummaries method. Please try the suggestion and let me know if this helps.

Best regards,
Haneef

Loader.
Up arrow icon