Hello,
I am using a XamDatagrid to display hierarchical data. This is done by using two different field Layouts - one for parent row and one for Children. Parent row = week and child row = one record per day.
Is it possible to have a summary definition per week and a total summary for the whole datagrid? Currently the summary per week is working fine but the total summary does not.
The XAML code below shows both field definitions.
Thanks
Niko
Hello Nikolaus,
I have been investigating your requirement in this case to have a “global total” summary in the XamDataGrid, and currently, this is not built-in to the XamDataGrid. The summaries of the XamDataGrid are on a “per-island” band – that is, they will apply to each child “island” in the grid and the parent island, but they will not traverse the entirety of the grid.
The best thing I can recommend to achieve this is to use external summary calculations in the grid. This can be done by using the QuerySummaryResult event of the XamDataGrid, which will allow you to essentially view your data and summarize it manually. You can read further about usage of external summary calculations at this topic.
If you would like to see a “grand summary” type of functionality added to the XamDataGrid, I would recommend suggesting a new product idea for this at our WPF Ideas Site. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.
Please let me know if you have any other questions or concerns on this matter.