Why CurrencyManager swallows all its event handlers exceptions?

  • Thread starter Thread starter Fabrizio
  • Start date Start date
F

Fabrizio

Hi all, I would like to know if there is a particular reason
about the CurrencyManager behaviour to swallow
all exceptions raised from the attached event handlers.
It seems that OnCurrentChanged(), OnItemChanged() and
OnPosititionChanged() protected methods catch all event handlers
exceptions without throwing them.

Has anyone any hint?

Thanks
Fabrizio
 
I think this is the way they decided to implement the databinding stuff.
Behind the scenes, databinding attaches itself to events raised by the
controls you are binding to. If anything goes wrong it seems the current
value is put back in and anything you entered is gone.
I suppose if it was not done like this you could end up with controls
showing data which is not really in the underlying data classes (for instance
entering string values in a text box bound to an integer value)
 
Back
Top