System.Windows.Forms.BindingNavigator.AddNewItem Property

Gets or sets the System.Windows.Forms.ToolStripItem that represents the Add New button.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

When set, the BindingNavigator.AddNewItem property generates the Control.Click event handler for the Add New button. This event handler calls the BindingSource.AddNew method when the Add New 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 Add New button if the BindingNavigator.BindingSource property is null or the BindingSource.AllowNew 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