System.Windows.Forms.BindingNavigator.AddStandardItems Method

Adds the standard set of navigation items to the System.Windows.Forms.BindingNavigator control.

Syntax

public virtual void AddStandardItems ()

Remarks

The BindingNavigator.AddStandardItems method adds the standard set of user interface System.Windows.Forms.ToolStripItem objects to the System.Windows.Forms.BindingNavigator tool strip for basic navigation operations, such as Move First, Move Last, and Add New.

Override BindingNavigator.AddStandardItems in derived classes to define additional or alternative tool strip items. To ensure optimal design-time support for your derived class, make sure each item has a meaningful value in its ToolStripItem.Name property. At design time, this will be used to generate a unique name for the corresponding member variable. The item's ToolStripItem.Name property will then be updated to match the name given to the member variable.

Note:

This method does not explicitly remove any previously existing items from the System.Windows.Forms.BindingNavigator, but does set new values for the BindingNavigator.MoveNextItem, BindingNavigator.MovePreviousItem, BindingNavigator.MoveFirstItem, BindingNavigator.MoveLastItem, BindingNavigator.PositionItem, BindingNavigator.CountItem, BindingNavigator.AddNewItem and BindingNavigator.DeleteItem properties. Also BindingNavigator.AddStandardItems does not suspend layout while items are being added.

Requirements

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