I have a class with the three property members. Amount, Frequency, and a calculated field of MonthlyTotal (Amount * Frequency). My grid is bound to this object. I have a summaryRow for the monthlyTotal column. The summary row correctly shows my sum.
If I change the Amount in the grid on the fly, the MonthlyTotal gets updated, but the summary row doesn't unless I 'refresh' it (i.e. I sort by that column). Ideas on what I might be missing? Do i have do something to manually force a summary row update?
Hi,
A feature was added a little while back to allow you do this:
grid.Rows[0].Manager.RefreshSummaries();
-SteveZ
I also need to refresh the summary row at run time as the user change some data in grid. I found the workaround to refresh the summary row.
RefreshSummary(string columnKey) {
Infragistics.
summary =
(
sum
_baseGrid.GetXamGrid().SummaryRowSettings.SummaryDefinitionCollection
columnKey
sum).First();
summary.SummaryOperand.IsApplied =
;
sumOperand =
quantity.SummaryColumnSettings.SummaryOperands
.Sum
sumOperand.IsApplied =
The summary values are not automatically updated in your case due to performance reasons. You'll need to update the values manually by calling grid.InvalidateData() method.
Hope that helps,