System.Windows.Forms.BindingNavigator.DeleteItem Property

Gets or sets the System.Windows.Forms.ToolStripItem that is associated with the Delete functionality.

Syntax

[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))]
public ToolStripItem DeleteItem { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When set, this property generates the Control.Click event handler for the Delete button. This event handler calls the BindingSource.RemoveCurrent method when the Delete button is clicked at run time.

This property is null if it was not previously set and it is accessed before the BindingNavigator.AddStandardItems method is implicitly or explicitly called.

The System.Windows.Forms.BindingNavigator control will disable the Delete button under the following run-time circumstances: the BindingNavigator.BindingSource property is null, the BindingSource.Count property is 0, or the BindingSource.AllowRemove property is false.

In the default implementation, this property represents a control of type System.Windows.Forms.ToolStripButton.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0