here is the code i'm using.
Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click
Try
If MessageBox.Show("Are you sure you want to delete the current record?", _
"Confirm Delete", _
MessageBoxButtons.OKCancel, _
MessageBoxIcon.Question, _
MessageBoxDefaultButton.Button2) = Windows.Forms.DialogResult.OK Then
Me.DetailsBindingNavigator2.BindingSource.RemoveFilter()
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
on this line
Me.DetailsBindingNavigator2.BindingSource.RemoveFilter(), i tried to change it to
Me.DetailsBindingNavigator2.BindingSource.RemoveCurrent(), but still nothing happens.

New Topic/Question
Reply



MultiQuote







|