PIAB and BindingSource

Aug 10, 2008 at 9:35 PM


to circumvent writing much code in all my DTO’s I just have them implement INotifyPropertyChanged by supplying the Event and an appropriate OnPropertyChanged method. I also created appropriate CallHandlers which intercept property changes and raise the appropriate events.

This works just fine in my unit-tests. But as soon as I try to bind a wrapped object in WinForms using a BindingSource.DataSource = myWrappedObject; I get an exception stating that the supplied object is not the same as the actual object (the one I wrapped).

Any ideas?

regards, Tilli