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
445
Hierarchical view with summaries
posted

Hi,

I have a table in the database which needs to be displayed on the grid. If I need a group by and a summary row feature together on the data, its possible with XamGrid. However when a column is grouped by, it appears as a single row and user would have to expand to view the child rows.

I was wondering if I can have them view in hierarchical instead.
For ex
>   A   Sum(B)   Sum(C)
     A       B1          C1
     A       B2          C2
>   A   Sum(B)   Sum(C)
     A       B1          C1
     A       B2          C2

Is this possible??

 

Parents
  • 40030
    Offline posted

    Hi, 

    Yes, its possible, however we don't currently offer as an inbox feature the ability to show summaries, although it is something we are looking into. 

    For now though, you can actually achieve this yourself, by using the Column's GroupByItemTemplate property. The DataContext for the Template, provides you with all the information you'll need to calculate the sums for each GroupByRow. 

    We actually have a very good article that shows something similar:

    http://help.infragistics.com/NetAdvantage/Silverlight/2010.3/CLR4.0/?page=SL_xamGrid_Custom_GroupBy_Row_Display.html

    Hope this helps, 

    -SteveZ

Reply Children