I am using the attached snippet to intercept the Delete button on a binding navigator being clicked to confirm a record deletion.
When I click the button, the dialog is displayed. If I hit 'Yes' the record appears to be deleted, i.e. the record counter shows (e.g.) 1 of 5 where it used to show 1 of 6.
If I re-run the program the record counter shows 1 of 6 and the record I thought I had deleted is still present.
Can someone pelase advise what I am missing?
Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click
If MessageBox.Show("Are you sure?", "", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then