WinForms BindingSource.CurrentChanged event is raised unexpectedly

WinForms BindingSource.CurrentChanged event is raised unexpectedly

Old forum URL: forums.lhotka.net/forums/t/12693.aspx


darilek posted on Monday, July 07, 2014

There is a problem with using WinForm BindingSource in the newest CSLA version (4.5.x). For BindingSource used in master-detail scenario, the CurrentChanged event is raised many times, when the property is changed on child object.

It can be easily reproduced on sample "RootChildGrandchildWinFormTest". Just add event handlers and breakpoints on all BindingSource.CurrentChanged events and try modify 1st-level child property. Event is raised many times for both child binding source and grandchild binding source (for every property defined on object).

in older versions (4.3.x, 3.8.x) it works fine (event is raised only one-time for GrandChild object)

Copyright (c) Marimer LLC