BindingNavigator.BindingSource プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As BindingNavigator Dim value As BindingSource value = instance.BindingSource instance.BindingSource = value
public: property BindingSource^ BindingSource { BindingSource^ get (); void set (BindingSource^ value); }
/** @property */ public BindingSource get_BindingSource () /** @property */ public void set_BindingSource (BindingSource value)
public function get BindingSource () : BindingSource public function set BindingSource (value : BindingSource)
BindingNavigator に関連付けられている System.Windows.Forms.BindingSource コンポーネント。既定値は null 参照 (Visual Basic では Nothing) です。

BindingSource プロパティは、BindingNavigator を使用して移動するデータ ソースを表します。具体的には、BindingSource の List プロパティが、実際のデータ一覧を表します。

次のコード例は、BindingNavigator コントロールを使用して、データベース クエリの結果間を移動する方法を示しています。結果セットは DataSet に格納されており、このデータ セットは TextBox コントロールおよび BindingSource コンポーネントにバインドされています。このコード例は 方法 : Windows フォームの BindingNavigator コントロールを使用して DataSet を移動する の例の一部です。
Public Sub New() ' Set up the BindingSource component. Me.customersBindingNavigator.BindingSource = Me.customersBindingSource Me.customersBindingNavigator.Dock = DockStyle.Top Me.Controls.Add(Me.customersBindingNavigator) ' Set up the TextBox control for displaying company names. Me.companyNameTextBox.Dock = DockStyle.Bottom Me.Controls.Add(Me.companyNameTextBox) ' Set up the form. Me.Size = New Size(800, 200) AddHandler Me.Load, AddressOf Form1_Load End Sub
public Form1() { // Set up the BindingSource component. this.customersBindingNavigator.BindingSource = this.customersBindingSource; this.customersBindingNavigator.Dock = DockStyle.Top; this.Controls.Add(this.customersBindingNavigator); // Set up the TextBox control for displaying company names. this.companyNameTextBox.Dock = DockStyle.Bottom; this.Controls.Add(this.companyNameTextBox); // Set up the form. this.Size = new Size(800, 200); this.Load += new EventHandler(Form1_Load); }
public: Form1() { // Set up the BindingSource component. this->customersBindingSource = gcnew BindingSource(); this->companyNameTextBox = gcnew TextBox(); this->customersBindingNavigator = gcnew BindingNavigator(); this->customersBindingNavigator->BindingSource = this->customersBindingSource; this->customersBindingNavigator->Dock = DockStyle::Top; this->Controls->Add(this->customersBindingNavigator); // Set up the TextBox control for displaying company names. this->companyNameTextBox->Dock = DockStyle::Bottom; this->Controls->Add(this->companyNameTextBox); // Set up the form. this->Size = System::Drawing::Size(800, 200); this->Load += gcnew EventHandler(this, &Form1::Form1_Load); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からBindingNavigator.BindingSource プロパティを検索する場合は、下記のリンクをクリックしてください。

- BindingNavigator.BindingSource プロパティのページへのリンク