BindingNavigator::BindingSource Property

 

Gets or sets the System.Windows.Forms::BindingSource component that is the source of data.

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

public:
[TypeConverterAttribute((ReferenceConverter^::typeid))]
property BindingSource^ BindingSource {
	BindingSource^ get();
	void set(BindingSource^ value);
}

Property Value

Type: System.Windows.Forms::BindingSource^

The System.Windows.Forms::BindingSource component associated with this BindingNavigator. The default is null.

The BindingSource property represents the data source that the BindingNavigator navigates through. More specifically, the List property of the BindingSource represents the actual data list.

This is the default property for the BindingNavigator class.

The following code example demonstrates how to use a BindingNavigator control to move through a data set. The set is contained in a DataView, which is bound to a TextBox control with a BindingSource component. This code example is part of a larger example provided in How to: Move Through a DataSet with the Windows Forms BindingNavigator Control.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: