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
Hello,
I am just checking if you require any further assistance on the matter.
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 } }
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.