Groups | Blog | Home
all groups > dotnet windows forms databinding > february 2006 >

dotnet windows forms databinding : Trapping AddNew


Laurin Stoll
2/19/2006 6:28:31 AM
Hi

Is there a way to tarp the AddNew event on the BindingNavigator to do some
checks before allowing BindingNavigator to add a new record?

Thanks

Regards
Otis Mukinfus
2/19/2006 9:37:43 PM
On Sun, 19 Feb 2006 06:28:31 -0800, Laurin Stoll
[quoted text, click to view]
I think you must be talking about the BindingSource object. BindingNavigator
doesn't have an AddNew method, but BindingSource does. BindingSource also has
an AddingNew event you can use for those checks.

Otis Mukinfus
http://www.otismukinfus.com
oldgent
4/5/2006 10:56:01 AM
So, how do you trap the add button on the bindingnavigator? I would like to
add additional code to both add and delete buttons.

Thanks.

[quoted text, click to view]
AddThis Social Bookmark Button