BindingNavigator BindingNavigator BindingNavigator BindingNavigator Constructors

Definition

Overloads

BindingNavigator() BindingNavigator() BindingNavigator()

Initializes a new instance of the BindingNavigator class.

BindingNavigator(Boolean) BindingNavigator(Boolean) BindingNavigator(Boolean) BindingNavigator(Boolean)

Initializes a new instance of the BindingNavigator class, indicating whether to display the standard navigation user interface (UI).

BindingNavigator(IContainer) BindingNavigator(IContainer) BindingNavigator(IContainer) BindingNavigator(IContainer)

Initializes a new instance of the BindingNavigator class and adds this new instance to the specified container.

BindingNavigator(BindingSource) BindingNavigator(BindingSource) BindingNavigator(BindingSource)

Initializes a new instance of the BindingNavigator class with the specified BindingSource as the data source.

BindingNavigator() BindingNavigator() BindingNavigator()

Initializes a new instance of the BindingNavigator class.

public:
 BindingNavigator();
public BindingNavigator ();
Public Sub New ()

Remarks

The parameterless constructor sets the BindingSource property to null. This constructor is equivalent to calling the BindingNavigator(Boolean) constructor with a parameter value of false. You can add the standard items by making a separate call to AddStandardItems.

See also

BindingNavigator(Boolean) BindingNavigator(Boolean) BindingNavigator(Boolean) BindingNavigator(Boolean)

Initializes a new instance of the BindingNavigator class, indicating whether to display the standard navigation user interface (UI).

public:
 BindingNavigator(bool addStandardItems);
public BindingNavigator (bool addStandardItems);
new System.Windows.Forms.BindingNavigator : bool -> System.Windows.Forms.BindingNavigator
Public Sub New (addStandardItems As Boolean)

Parameters

addStandardItems
Boolean Boolean Boolean Boolean

true to show the standard navigational UI; otherwise, false.

Remarks

This constructor sets the BindingSource property to null. If AddStandardItems is false, AddNewItem, MoveFirstItem, MoveLastItem, MoveNextItem, MovePreviousItem, DeleteItem, CountItem and PositionItem will also be null.

See also

BindingNavigator(IContainer) BindingNavigator(IContainer) BindingNavigator(IContainer) BindingNavigator(IContainer)

Initializes a new instance of the BindingNavigator class and adds this new instance to the specified container.

public:
 BindingNavigator(System::ComponentModel::IContainer ^ container);
public BindingNavigator (System.ComponentModel.IContainer container);
new System.Windows.Forms.BindingNavigator : System.ComponentModel.IContainer -> System.Windows.Forms.BindingNavigator
Public Sub New (container As IContainer)

Parameters

container
IContainer IContainer IContainer IContainer

The IContainer to add the new BindingNavigator control to.

Remarks

This constructor is provided as a convenience, combining the steps of creating a new BindingNavigator control and adding it to a parent IContainer. Like the parameterless constructor, it sets the BindingSource property to null and does not show the standard user interface.

See also

BindingNavigator(BindingSource) BindingNavigator(BindingSource) BindingNavigator(BindingSource)

Initializes a new instance of the BindingNavigator class with the specified BindingSource as the data source.

public:
 BindingNavigator(System::Windows::Forms::BindingSource ^ bindingSource);
public BindingNavigator (System.Windows.Forms.BindingSource bindingSource);
new System.Windows.Forms.BindingNavigator : System.Windows.Forms.BindingSource -> System.Windows.Forms.BindingNavigator

Parameters

bindingSource
BindingSource BindingSource BindingSource BindingSource

The BindingSource used as a data source.

Remarks

This constructor uses the BindingSource parameter to initialize the BindingSource property. It also adds the standard set of navigational buttons and sets their corresponding properties, such as CountItem and MoveNextItem.

See also

Applies to