Hi,
Is it possible to remove ItemCalculation registered with ListCalculator ItemCalculations collection ?
Or at least change associated formula. When i try to replace formula i get exception "InvalidOperationException: Collection Was Modified".
Here is the sample which throws an exception
var calc = View.ListCalculator.ItemCalculations.FirstOrDefault(i => i.ReferenceId == FormulaId);
if (calc != null)
{
calc.Formula = formula;
}
Thanks.
HI,
I've fixed issue by assigning new ListCalculator to ListCalculatorElement.
Best Regards
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.