ErrorProvider on a UserControl

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

Hi,

I have a user control, which is a bunch of textboxes and dropdowns. I
also have a bindingsource component, to which an object is bound.
Also, an ErrorProvider component as well.

The bound object correctly implements IDataErrorInfo as well. When
changing a property, the data is validated and the methods to do the
validation do run, but the ErrorProvider never shows its icon.

Any ideas?

Thanks
Andy
 
Andy,

Are you calling the SetError(control, error message) for the control that
has the error anywhere in your code?

Brendon
 
Back
Top