PIAB and BindingSource

Aug 10, 2008 at 10:35 PM

Hi,

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