C# - Binding Navigator

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top