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
1030
SummaryResultChanged not firing when unchecking all calculators
posted

Hi,

I am using XamCalculationManager in XamDataGrid. I want to do something when a SummaryCalculator is checked and unchecked. SummaryResultChanged is firing only for Checking a SummaryCalculator. But it is not firing for unchecking a SummaryCalculator.. How to find out any of the SummaryCalculator is not applied for a Field or Is there any way where i can get notified when unchecking a SummaryCalculator ?

 

Thanks

  • 35319
    Verified Answer
    posted

    Hello,

     

    I am just checking if you require any further assistance on the matter.

     

     

     

  • 35319
    posted

    Hello,

     

    I have been looking into your question and I can suggest handling the ‘SummarySelectionControlClosed’ event instead of ‘SummaryResultChanged’ and checking whether summaries change like :

     

      private void xamDataGrid1_SummarySelectionControlClosed(object sender, Infragistics.Windows.DataPresenter.Events.SummarySelectionControlClosedEventArgs e)

            {

                if (e.SummariesChanged == true)

                {

                    // your logic

                }       

            }

    If you need any further assistance on this matter, feel free to ask.