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
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