Bindingnavigator delete

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

Guest

I have a c# program that uses the bindingnavigator control. It works fine,
but I want to add the ability for a user to change his mind after clicking
'delete' to delete a record. So if the user clicks delete I want to show a
message box that says are you sure, and then stop the delete if the user
wants to. I've places a messagebox.show in rowdeleteing, but when you say no,
it deletes anyway.

Where can I trap the delete and stop it?
 
I am looking for this same functionality. How do I add additional code to
the buttons on the bindingnavigator?

Thanks.
 
Go to the DeleteItem property of the bindingnavigator, change it to none.
Double click on the delete toolstripbutton and write your event code.

Mel
 

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