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
55
XamDataGrid: How To Perform External Summaries
posted

I am attempting to make use of the XamDataGrid's external summaries feature. I have registered a QuerySummaryResult event handler and in that handler I am using QuerySummaryResultEventArgs.SetSummaryValue to provide the result of my custom summary calculation. This works - I can indeed provide a summary value and observe it in the grid. But, here is my problem: how do I determine the set of data records that need to be summarized? My QuerySummaryResult handler is being called to handle the SummaryDefinitions which I have placed in the xaml (summarize all of the data). My QuerySummaryResult handler is also being called to provide the summaries needed when the users performs a group by operation. How do I determine which data items need to be summarized?

Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello Robert,

    Thank you for your post. I have been looking into and I can suggest you use the following code in order to get the DataRecords that should be summarized:

    var records = e.Summary.ParentCollection.Records;

    Please let me know if this helps you or you have further questions on this matter.

    Looking forward for your reply.

Children
No Data