Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
585
Create RowSummary for custom list of rows
posted

I have a grid with a few columns that have SummarySettings attached. In addition to showing the row summaries as a footer for the entire list or the current groupby's list, I want to make it so if you select a bunch of rows, it calculates the summaries for the selection. (Excel does something similar in its status bar if you select some cells.)

However, most of the classes like SummaryValue as well as methods like ICustomSummaryCalculator.BeginCustomSummary seem to rely on a RowsCollection, and it is apparently not possible to create a custom RowsCollection instance. I really just want to pass a subset of rows (currently an IEnumerable<UltraGridRow>) and have SummaryValue perform aggregations on that.

Is there a trick I'm missing?