Binding Navigator and its delete button is inconsistant

How do you use the delete button on the binding navigator?

1) If I use it as is, the display will remove my selected item. However, if I close the form and re-enter it, the
data is still there.

2) If I add my own delete logic, I see different behavior. Not only is my selected item deleted, but the one next to it is also deleted. BUT, if I close the form and re-enter it, my selected item is removed and the extra item
has been restored.

3) I can get around this by doing my step one here and adding a click on the save button. Does this mean I need to add save logic to my delete button?

I have found postings regarding "AllowDelete" and other similar functionality, but there are no properties for Allow delete or allow remove in the properties panes.

Is this a programmatic solution?

if so, what is the VB solution for it?

[927 byte] By [VisualBasicGuruWannabe] at [2007-12-24]
# 1

The bindingnavigator has some built in code that runs when you press the delete button. To prevent this from running set the bindingnavigator's deleteitem to none. When a form opens it is getting the data it is showing from the database. If you want it show changes made last time the form is open you will have to save them before closing the form.

KenTucker at 2007-8-31 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2

Actually, I want to know how to use the code from the navigator.

Do I use BindingNavigator.AllowDelete = True?

or do I use BindingNavigator.DeleteItem = True?

VisualBasicGuruWannabe at 2007-8-31 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 3

I was able to use a suggestion from the web that mentioned disabling or deleting the delete button created by the binding navigator and creating my own.

This is not a real solution, but as a work around, it allowed me to continue with my project.

VisualBasicGuruWannabe at 2007-8-31 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...