ErrorProvider with DataSet. How can I make it work

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

As you all know, when we call EndCurrentEdit on a BindingManagerBase class,
the associated DataSet's mechanisms for validating the data types,
nullability, uniqueness, and other constraints are set in motion. If a
constraint is violated, an exception is thrown. Now I want that exception to
be shown in the ErrorProvider instead.
http://msdn.microsoft.com/library/d...tasetwithwindowsformserrorprovidercontrol.asp
explains how to do this. But following these steps, I was not able to make
it work. I tried many variations and none worked. Has anyone successfully
done this and can you please share.

Thanks for your guidance.

Nima
 
OK, I read the article noted below one more time and it is not talking about
what I want to do. My apologies. However, any ideas on how to accomplish
this will be much apreciated.

Thanks,

Nima
 
Back
Top