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
370
Get summary value for each group-by row
posted

 Hi,

 

I have an UltraGrid that have grouped rows. How can I get the summary value for each group-by row displayed in the grid ?

I found how to get global (ie for all of the rows) summary values (ug.Rows.SummaryValues), but I cannot find where to locate individual summary value (ie for one grouped row, something like ug.Rows(0).SummaryValue, where ug.Rows(0) is of UltraGridGroupByRow type).

 

Thanks.

Rico 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Rico,

        The SummaryValues collection is on the Rows collection. So what you need to do is make sure you cast the row into an UltraGridGroupByRow. Then you can access it's Rows collection and the SummaryValues collection is off of that. Something like this:

        Dim gbr as UltraGridGroupByRow = CType(ug.Rows(0), UltraGridGroupByRow)

        gbr.Rows.SummaryValues("My Summary").Value 

Children
No Data