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
295
how to Get Summary section values and to add new line after the Summary section
posted

 

I want to get Summary section values.

and to add two new rows after the Summary section to display another value in it.

 

  • 469350
    Offline posted

    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.