C# - Binding Navigator

G

Guest

1. Where would I find the code where the delete action takes place? C#
automatically placed this binding navigator on my form and I see no code for
where it deletes a record.

I want to add a messagebox to confirm before allowign the delete.


Thank you!
Sometimes I wish I stuck with VB 6.0.
 
R

RobinS

Open the designer code. Click on ShowAllFiles in the Solution Explorer,
then open the myForm.Designer.cs file.

You can override it; just double-click on the delete icon and it will
create an event procedure for you, and you can put your messagebox in
there, then if they say ok, you can do whatever the one in the designer
does.

Robin S.
 

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

Top