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
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