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
490
Creating a custom summary
posted

I am creating a custom summary similar to this one: http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/xamGrid_Create_a_Custom_Summary.html

My data is a class that we have developed and it is similar to the TimeSpan class.

In Summarize method of the SynchronousSummaryCalculator implementation, I return the TotalMinutes.

However, in the summary row, I need to instantiate a new object of my class with the sum of the returned TotalMinutes and then call the ToString() method of the object.

What is the best way to approach this task?

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello Burak,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the SummaryRowCellControl and changed the Binding in the Template. Now it point directly to the SummaryResult’s Value and since I return an object, the ToString method is called. Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.

    XamGridCustomSummary.zip
Reply Children