Hi,
I'm trying to write a summary control that we will be connecting to various grids in our application to display various summaries (totals, weighted averages etc). I'd like to use the value of summary rows as the basis for a number of the calculations to be used in the control but can't see a way to access the actual value summarised. Is this exposed anywhere?
This is probably done for efficiency. The grid calculates the summaries only when they are displayed so as not to waste time calculating a value the user can't see.
If you are only doing summaries on the root level, anyway, then maybe you should use UltraCalcManager to do the calculatiions. You could use a NamedReference on the CalcManager that applies a formula to a column. This will get calculated regardless of whether it's visible.
Or, maybe you can use the RefreshSummaries method on the grid's DisplayLayout to force the calcuation of the summaries in the grid when you need them.
Just to clarify....
Thanks for getting back to me Mike, and at least now I can stop relying on SummaryValueChanged!
I don't suppose you know why the SummarySettings no longer update when the display is set to None? Ideally I'd like to use the SummaryValues but don't need them displayed in the grid. And there's no Hidden property.
The SummaryValues are on the rows collection, since they are specific to each collection of rows.
So, for a root-level summary, you could do something like this:
grid.Rows.SummaryValues[mySummaryValueKey].Value