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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top