Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs =================================================================== diff -u -rc47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd -rade3657cb21871c58056daedc9deaf1da8594ec3 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs (.../MacroStabilityInwardsFailureMechanismResultView.cs) (revision c47cc3d2e42f1cb69ccf6e47ee0922f05dfd68dd) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsFailureMechanismResultView.cs (.../MacroStabilityInwardsFailureMechanismResultView.cs) (revision ade3657cb21871c58056daedc9deaf1da8594ec3) @@ -71,9 +71,6 @@ this.assessmentSection = assessmentSection; - DataGridViewControl.CellFormatting += ShowDetailedAssessmentErrors; - DataGridViewControl.CellFormatting += DisableIrrelevantFieldsFormatting; - // The concat is needed to observe the input of calculations in child groups. calculationInputObserver = new RecursiveObserver( UpdateDataGridViewDataSource, @@ -94,8 +91,6 @@ calculationInputObserver.Observable = observableGroup; calculationOutputObserver.Observable = observableGroup; calculationGroupObserver.Observable = observableGroup; - - UpdateDataGridViewDataSource(); } protected override void Dispose(bool disposing) @@ -148,6 +143,14 @@ RingtoetsCommonFormsResources.FailureMechanismResultView_TailorMadeAssessment_DisplayName); } + protected override void BindEvents() + { + base.BindEvents(); + + DataGridViewControl.CellFormatting += ShowDetailedAssessmentErrors; + DataGridViewControl.CellFormatting += DisableIrrelevantFieldsFormatting; + } + #region Event handling private void DisableIrrelevantFieldsFormatting(object sender, DataGridViewCellFormattingEventArgs eventArgs)