I want to get Summary section values.
and to add two new rows after the Summary section to display another value in it.
Hi,
mcsmahesh said:I want to get Summary section values.
To get the value from a summary in code, you need to access the SummaryValues collection on the Rows collection. So at the root level of the grid, the code looks something like this:
grid.Rows.SummaryValues["key"].Value
mcsmahesh said:and to add two new rows after the Summary section to display another value in it.
I'm not sure exactly what this means. It sounds like you are saying that you simply want to add addition summaries to the grid band whose values rely on the other summary value. There are a couple of different ways you can do this. One would be to add a summary using a ICustomSummaryCalculator in which you could use the value of another summary on the same rows collection.
The other way to do this would be to create all of your summaries using UltraCalcManager and Formulas instead of using the built-in summaries like Sum, Average, etc. in the grid.