I want to use the default delete button (if possible) but instead of that button calling its default click event, I want to call my own event. I know how to get it to call my own event but I don't know how to eliminate it from also calling its default event. I don't know what the default event is called in order to remove it. Anyone know? Same question for the default add item's click event. What is the default add button's click event called?
Here is a pic of the tool strip that was added when I dropped the data source on to the form. It is the events of these add and delete buttons I refer to: tool strip
Here is the code I am working with:
this.bindingNavigatorDeleteItem.Click -= WhatGoesHere?;
this.bindingNavigatorDeleteItem.Click += myDeleteClickEventHandler;
From within the designer, highlight the ToolStrip, and go to DeleteItem in the Properties window and select none:
or from code:
bindingNavigator1.DeleteItem = null;
Now you can add your own event as you wish.