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
90
Show totals by group
posted

Hello,

This is my context:

  • WebHierarchicalDataGrid (Infragistics35.Web.v11.2, version 11.2.20112.2086)
  • Based on a WebHierarchicalDataSource
  • Just one band (with ColumnGrouping enabled)
  • Summary Row enabled
  • Filtering enabled

When I group by one column and I have another with a summary activated (normally the "sum") the grid shows only one summary row at the end. It's possible to have one summary row by group or the totals in group header (like in Infragistics Windows Forms UltraGrid)? 

I've read several similar posts but I just can't get a clear answer.

Thanks.

Parents
  • 90
    Verified Answer
    Offline posted

    After many tries, I've found a workaround: calculate the group summaries "by hand".

    Here's my solution:

    • create a new sub (I did it inside a new global module) called ShowSummariesInGroups (in attachment)

    • call the sub inside the WebHierarchicalDataGrid GroupedRowInitialized event

     

     

     

     

    Private Sub WebHierarchicalDataGrid1_GroupedRowInitialized(sender As Object, e As Infragistics.Web.UI.GridControls.GroupedRowEventArgs) Handles WebHierarchicalDataGrid1.GroupedRowInitialized

    ShowSummariesInGroups(sender, e)

     

     

     

    End Sub

     

     

    I hope it can be useful to someone.

    Summaries.zip
Reply Children