BindingSourceとは? わかりやすく解説

BindingSource イベント


パブリック イベントパブリック イベント

  名前 説明
パブリック イベント AddingNew 項目が基底のリストに追加される前に発生します。
パブリック イベント BindingComplete すべてのクライアントがこの BindingSource にバインドされたときに発生します。
パブリック イベント CurrentChanged 現在バインドされている項目が変更された場合に発生します。
パブリック イベント CurrentItemChanged Current プロパティのプロパティ値が変更された場合に発生します。
パブリック イベント DataError 現在性に関する例外が BindingSource によって表示されずに処理された場合に発生します。
パブリック イベント DataMemberChanged DataMember プロパティの値が変更された場合に発生します。
パブリック イベント DataSourceChanged DataSource プロパティの値が変更された場合に発生します。
パブリック イベント Disposed  コンポーネントの Disposed イベントを待機するイベント ハンドラを追加します。 ( Component から継承されます。)
パブリック イベント ListChanged 基底のリストまたはリスト内の項目が変更された場合に発生します。
パブリック イベント PositionChanged Position プロパティの値が変更された後に発生します。
参照参照

関連項目

BindingSource クラス
System.Windows.Forms 名前空間
BindingSource クラス
BindingNavigator クラス
DataGridView
CurrencyManager
IList
IBindingList
IEditableObject

その他の技術情報

BindingSource コンポーネント

BindingSource クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

フォームのデータ ソースをカプセル化します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Class BindingSource
    Inherits Component
    Implements IBindingListView, IBindingList, IList, ICollection,
 _
    IEnumerable, ITypedList, ICancelAddNew, ISupportInitializeNotification, ISupportInitialize,
 _
    ICurrencyManagerProvider
Dim instance As BindingSource
public class BindingSource : Component, IBindingListView,
 IBindingList, IList, 
    ICollection, IEnumerable, ITypedList, ICancelAddNew, ISupportInitializeNotification,
 
    ISupportInitialize, ICurrencyManagerProvider
public ref class BindingSource : public
 Component, IBindingListView, IBindingList, IList, 
    ICollection, IEnumerable, ITypedList, ICancelAddNew, ISupportInitializeNotification,
 
    ISupportInitialize, ICurrencyManagerProvider
public class BindingSource extends Component
 implements IBindingListView, IBindingList, 
    IList, ICollection, IEnumerable, ITypedList, ICancelAddNew, 
    ISupportInitializeNotification, ISupportInitialize, ICurrencyManagerProvider
public class BindingSource extends
 Component implements IBindingListView, IBindingList, 
    IList, ICollection, IEnumerable, ITypedList, ICancelAddNew, 
    ISupportInitializeNotification, ISupportInitialize, ICurrencyManagerProvider
解説解説

BindingSource コンポーネントは、2 つの目的を果たします。1 つは、間接層、通貨管理、変更通知、およびその他のサービスを提供して、フォーム上のコントロールのデータへのバインディングを簡素化することです。これは、BindingSource コンポーネントをデータ ソースに結びつけ、フォーム上のコントロールを BindingSource コンポーネントにバインディングすることによって達成されます。以降のデータとの対話 (移動、並べ替え、フィルタ処理、更新など) は、BindingSource コンポーネントを呼び出すことによって実行します。

BindingSource コンポーネントが果たすもう 1 つの目的は、厳密に型指定されたデータ ソースとして機能することです。基底のデータ ソースの型は、通常、次の機構のうちいずれかを通じて固定されます。

どちらの機構を使用しても、厳密に型指定されたリストが作成されます。BindingSource は、DataSource プロパティと DataMember プロパティの設定に従い、単純データ バインディングと複合データ バインディングの両方をサポートします。

メモ注意

BindingSource クラスの多くのメンバは、List プロパティで表される基底のリストの下で機能し、その操作を基底のリストに委託するだけです。このため、BindingSource を IList のカスタム実装とバインドした場合、これらのメンバの動作は、クラスのドキュメントに記載されている動作と厳密には異なる場合があります。たとえば、RemoveAt メソッドは、IList.RemoveAt を呼び出します。BindingSource のドキュメントにおける RemoveAt メソッドの説明は、基になる IList の RemoveAt メソッドが正しく実装されていることを前提としています。

使用例使用例

BindingSource に ListBox をバインドするコード例を次に示します。BindingSource が、フォント一覧を保持する BindingList にバインドされます。

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Public Class Form1
    Inherits Form

    <STAThread()> _
    Shared Sub Main()
        Application.EnableVisualStyles()
        Application.Run(New Form1())

    End Sub

    Public Sub New()

    End Sub

    Private textBox1 As TextBox
    Private WithEvents button1 As
 Button
    Private listBox1 As ListBox
    Private components As IContainer
    Private binding1 As BindingSource

    Sub Form1_Load(ByVal sender As
 Object, ByVal e As EventArgs)
 Handles Me.Load
        listBox1 = New ListBox()
        textBox1 = New TextBox()
        binding1 = New BindingSource()
        button1 = New Button()
        listBox1.Location = New Point(140, 25)
        listBox1.Size = New Size(123, 160)
        textBox1.Location = New Point(23, 70)
        textBox1.Size = New Size(100, 20)
        textBox1.Text = "Wingdings"
        button1.Location = New Point(23, 25)
        button1.Size = New Size(75, 23)
        button1.Text = "Search"
        Me.ClientSize = New Size(292, 266)
        Me.Controls.Add(Me.button1)
        Me.Controls.Add(Me.textBox1)
        Me.Controls.Add(Me.listBox1)

        Dim fonts As New
 MyFontList()
        Dim i As Integer
        For i = 0 To FontFamily.Families.Length
 - 1
            If FontFamily.Families(i).IsStyleAvailable(FontStyle.Regular)
 Then
                fonts.Add(New Font(FontFamily.Families(i), 11.0F,
 FontStyle.Regular))
            End If
        Next i
        binding1.DataSource = fonts
        listBox1.DataSource = binding1
        listBox1.DisplayMember = "Name"

    End Sub
    Private Sub button1_Click(ByVal
 sender As Object, ByVal
 e As EventArgs) _
        Handles button1.Click

        If binding1.SupportsSearching <> True
 Then
            MessageBox.Show("Cannot search the list.")
        Else
            Dim foundIndex As Integer
 = binding1.Find("Name", textBox1.Text)
            If foundIndex > -1 Then
                listBox1.SelectedIndex = foundIndex
            Else
                MessageBox.Show("Font was not found.")
            End If
        End If

    End Sub
End Class

Public Class MyFontList
    Inherits BindingList(Of Font)

    Protected Overrides ReadOnly
 Property SupportsSearchingCore() As Boolean
        Get
            Return True
        End Get
    End Property
    
    Protected Overrides Function
 FindCore(ByVal prop As PropertyDescriptor,
 _
        ByVal key As Object)
 As Integer
        ' Ignore the prop value and search by family name.
        Dim i As Integer
        While i < Count
            If Items(i).FontFamily.Name.ToLower() = CStr(key).ToLower()
 Then
                Return i
            End If
            i += 1
        End While

        Return -1
    End Function
End Class
継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
      System.Windows.Forms.BindingSource
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
BindingSource メンバ
System.Windows.Forms 名前空間
BindingSource クラス
BindingNavigator クラス
DataGridView
CurrencyManager
IList
IBindingList
IEditableObject
その他の技術情報
BindingSource コンポーネント

BindingSource コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

BindingSource クラスの新しいインスタンスを既定のプロパティ値で初期化します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

public BindingSource ()
public:
BindingSource ()
public BindingSource ()
public function BindingSource ()
解説解説

次の表に、このコンストラクタで初期化される BindingSource の既定のプロパティ値を示します。

プロパティ

既定値

DataSource

null 参照 (Visual Basic では Nothing)

DataMember

Empty

Sort

null 参照 (Visual Basic では Nothing)

Filter

null 参照 (Visual Basic では Nothing)

RaiseListChangedEvents

true

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
BindingSource クラス
BindingSource メンバ
System.Windows.Forms 名前空間
DataSource
DataMember
CurrencyManager

BindingSource コンストラクタ (IContainer)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

BindingSource クラスの新しいインスタンスを初期化し、その BindingSource を指定したコンテナに追加します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Sub New ( _
    container As IContainer _
)
Dim container As IContainer

Dim instance As New BindingSource(container)
public BindingSource (
    IContainer container
)
public:
BindingSource (
    IContainer^ container
)
public BindingSource (
    IContainer container
)
public function BindingSource (
    container : IContainer
)

パラメータ

container

現在の BindingSource を追加する IContainer。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

BindingSource コンストラクタ (Object, String)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

データ ソースとデータ メンバを指定して、BindingSource クラスの新しいインスタンスを初期化します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Sub New ( _
    dataSource As Object, _
    dataMember As String _
)
Dim dataSource As Object
Dim dataMember As String

Dim instance As New BindingSource(dataSource,
 dataMember)
public BindingSource (
    Object dataSource,
    string dataMember
)
public:
BindingSource (
    Object^ dataSource, 
    String^ dataMember
)
public BindingSource (
    Object dataSource, 
    String dataMember
)
public function BindingSource (
    dataSource : Object, 
    dataMember : String
)

パラメータ

dataSource

BindingSource のデータ ソース。

dataMember

バインド先となるデータ ソース内の特定の列またはリストの名前。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

BindingSource コンストラクタ


BindingSource プロパティ


パブリック プロパティパブリック プロパティ

プロテクト プロパティプロテクト プロパティ
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.ComponentModel.ISupportInitializeNotification.IsInitialized BindingSource が初期化されているかどうかを示す値を取得します。
参照参照

関連項目

BindingSource クラス
System.Windows.Forms 名前空間
BindingSource クラス
BindingNavigator クラス
DataGridView
CurrencyManager
IList
IBindingList
IEditableObject

その他の技術情報

BindingSource コンポーネント

BindingSource メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Add 既存の項目を内部リストに追加します。
パブリック メソッド AddNew 基になるリストに新しい項目を追加します。
パブリック メソッド ApplySort オーバーロードされます。 指定された並べ替えに関する説明に基づいて、データ ソースを並べ替えます。
パブリック メソッド CancelEdit 現在の編集操作をキャンセルします。
パブリック メソッド Clear リストからすべての要素を削除します。
パブリック メソッド Contains オブジェクトがリストの項目であるかどうか判断します。
パブリック メソッド CopyTo 指定したインデックスを開始位置として、指定した配列に List の内容をコピーします。
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド Dispose オーバーロードされます。 BindingSource によって使用されているすべてのリソースを解放します。
パブリック メソッド EndEdit 基底のデータ ソースに保留中の変更を適用します。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド Find オーバーロードされます。 データ ソースから指定された項目を検索します。
パブリック メソッド GetEnumerator List の列挙子を取得します。
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetItemProperties データ ソースのリスト型について、バインド可能なプロパティを表す PropertyDescriptor オブジェクトの配列を取得します。
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド GetListName バインディングのためのデータを提供するリストの名前を取得します。
パブリック メソッド GetRelatedCurrencyManager 指定されたデータ メンバに関連付けられた CurrencyManager を取得します。
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド IndexOf 指定したオブジェクトを検索し、リスト全体でそのオブジェクトが最初に見つかった位置のインデックスを返します。
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド Insert リスト内の指定したインデックスに項目を挿入します。
パブリック メソッド MoveFirst リストの最初の項目に移動します。
パブリック メソッド MoveLast リストの最後の項目に移動します。
パブリック メソッド MoveNext リストの次の項目に移動します。
パブリック メソッド MovePrevious リストの前の項目に移動します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド Remove 指定した項目をリストから削除します。
パブリック メソッド RemoveAt リスト内の指定したインデックスにある項目を削除します。
パブリック メソッド RemoveCurrent 現在の項目をリストから削除します。
パブリック メソッド RemoveFilter BindingSource に関連付けられているフィルタを削除します。
パブリック メソッド RemoveSort BindingSource に関連付けられている並べ替えを削除します。
パブリック メソッド ResetAllowNew AllowNew プロパティを再初期化します。
パブリック メソッド ResetBindings BindingSource にバインドされたコントロールに対し、リスト内のすべての項目を再度読み込んで表示値を更新するよう通知します。
パブリック メソッド ResetCurrentItem BindingSource にバインドされたコントロールに対し、現在選択されている項目を再度読み込んで表示値を更新するよう通知します。
パブリック メソッド ResetItem BindingSource にバインドされたコントロールに対し、指定したインデックスにある項目を再度読み込んで表示値を更新するよう通知します。
パブリック メソッド ResumeBinding データ バインディングを再開します。
パブリック メソッド SuspendBinding データ バインディングに伴う変更によるバインド データ ソースの更新を中断します。
パブリック メソッド ToString  Component の名前を格納している String を返します (存在する場合)。このメソッドはオーバーライドできません。 ( Component から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Dispose オーバーロードされます。 オーバーライドされます。 BindingSource によって使用されているすべてのリソースを解放します。
プロテクト メソッド Finalize  Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 ( Component から継承されます。)
プロテクト メソッド GetService  Component またはその Container で提供されるサービスを表すオブジェクトを返します。 ( Component から継承されます。)
プロテクト メソッド MemberwiseClone  オーバーロードされます。 ( MarshalByRefObject から継承されます。)
プロテクト メソッド OnAddingNew AddingNew イベントを発生させます。
プロテクト メソッド OnBindingComplete BindingComplete イベントを発生させます。
プロテクト メソッド OnCurrentChanged CurrentChanged イベントを発生させます。
プロテクト メソッド OnCurrentItemChanged CurrentItemChanged イベントを発生させます。
プロテクト メソッド OnDataError DataError イベントを発生させます。
プロテクト メソッド OnDataMemberChanged DataMemberChanged イベントを発生させます。
プロテクト メソッド OnDataSourceChanged DataSourceChanged イベントを発生させます。
プロテクト メソッド OnListChanged ListChanged イベントを発生させます。
プロテクト メソッド OnPositionChanged PositionChanged イベントを発生させます。
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.ComponentModel.IBindingList.AddIndex 検索に使用されるインデックスに PropertyDescriptor を追加します。
インターフェイスの明示的な実装 System.ComponentModel.IBindingList.RemoveIndex 検索に使用されるインデックスから System.ComponentModel.PropertyDescriptor を削除します。
インターフェイスの明示的な実装 System.ComponentModel.ICancelAddNew.CancelNew 保留中の新しい項目をコレクションから破棄します。
インターフェイスの明示的な実装 System.ComponentModel.ICancelAddNew.EndNew 保留中の新しい項目をコレクションにコミットします。
インターフェイスの明示的な実装 System.ComponentModel.ISupportInitialize.BeginInit 初期化の開始を通知するシグナルを BindingSource に送信します。
インターフェイスの明示的な実装 System.ComponentModel.ISupportInitialize.EndInit 初期化の完了を通知するシグナルを BindingSource に送信します。
参照参照

関連項目

BindingSource クラス
System.Windows.Forms 名前空間
BindingSource クラス
BindingNavigator クラス
DataGridView
CurrencyManager
IList
IBindingList
IEditableObject

その他の技術情報

BindingSource コンポーネント

BindingSource メンバ

フォームのデータ ソースをカプセル化します。

BindingSource データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Add 既存の項目を内部リストに追加します。
パブリック メソッド AddNew 基になるリストに新しい項目を追加します。
パブリック メソッド ApplySort オーバーロードされます。 指定された並べ替えに関する説明に基づいて、データ ソースを並べ替えます。
パブリック メソッド CancelEdit 現在の編集操作をキャンセルします。
パブリック メソッド Clear リストからすべての要素を削除します。
パブリック メソッド Contains オブジェクトがリストの項目であるかどうか判断します。
パブリック メソッド CopyTo 指定したインデックスを開始位置として、指定した配列に List の内容をコピーします。
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 (MarshalByRefObject から継承されます。)
パブリック メソッド Dispose オーバーロードされます。 BindingSource によって使用されているすべてのリソースを解放します。
パブリック メソッド EndEdit 基底のデータ ソースに保留中の変更を適用します。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド Find オーバーロードされます。 データ ソースから指定された項目を検索します。
パブリック メソッド GetEnumerator List の列挙子を取得します。
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetItemProperties データ ソースのリスト型について、バインド可能なプロパティを表す PropertyDescriptor オブジェクトの配列を取得します。
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド GetListName バインディングのためのデータを提供するリストの名前を取得します。
パブリック メソッド GetRelatedCurrencyManager 指定されたデータ メンバに関連付けられた CurrencyManager を取得します。
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IndexOf 指定したオブジェクトを検索し、リスト全体でそのオブジェクトが最初に見つかった位置のインデックスを返します。
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド Insert リスト内の指定したインデックスに項目を挿入します。
パブリック メソッド MoveFirst リストの最初の項目に移動します。
パブリック メソッド MoveLast リストの最後の項目に移動します。
パブリック メソッド MoveNext リストの次の項目に移動します。
パブリック メソッド MovePrevious リストの前の項目に移動します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド Remove 指定した項目をリストから削除します。
パブリック メソッド RemoveAt リスト内の指定したインデックスにある項目を削除します。
パブリック メソッド RemoveCurrent 現在の項目をリストから削除します。
パブリック メソッド RemoveFilter BindingSource に関連付けられているフィルタを削除します。
パブリック メソッド RemoveSort BindingSource に関連付けられている並べ替えを削除します。
パブリック メソッド ResetAllowNew AllowNew プロパティを再初期化します。
パブリック メソッド ResetBindings BindingSource にバインドされたコントロールに対し、リスト内のすべての項目を再度読み込んで表示値を更新するよう通知します。
パブリック メソッド ResetCurrentItem BindingSource にバインドされたコントロールに対し、現在選択されている項目を再度読み込んで表示値を更新するよう通知します。
パブリック メソッド ResetItem BindingSource にバインドされたコントロールに対し、指定したインデックスにある項目を再度読み込んで表示値を更新するよう通知します。
パブリック メソッド ResumeBinding データ バインディングを再開します。
パブリック メソッド SuspendBinding データ バインディングに伴う変更によるバインド データ ソースの更新を中断します。
パブリック メソッド ToString  Component の名前を格納している String を返します (存在する場合)。このメソッドはオーバーライドできません。 (Component から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Dispose オーバーロードされます。 オーバーライドされます。 BindingSource によって使用されているすべてのリソースを解放します。
プロテクト メソッド Finalize  Component がガベージ コレクションによってクリアされる前に、アンマネージ リソースを解放し、その他のクリーンアップ操作を実行します。 (Component から継承されます。)
プロテクト メソッド GetService  Component またはその Container で提供されるサービスを表すオブジェクトを返します。 (Component から継承されます。)
プロテクト メソッド MemberwiseClone  オーバーロードされます。 ( MarshalByRefObject から継承されます。)
プロテクト メソッド OnAddingNew AddingNew イベントを発生させます。
プロテクト メソッド OnBindingComplete BindingComplete イベントを発生させます。
プロテクト メソッド OnCurrentChanged CurrentChanged イベントを発生させます。
プロテクト メソッド OnCurrentItemChanged CurrentItemChanged イベントを発生させます。
プロテクト メソッド OnDataError DataError イベントを発生させます。
プロテクト メソッド OnDataMemberChanged DataMemberChanged イベントを発生させます。
プロテクト メソッド OnDataSourceChanged DataSourceChanged イベントを発生させます。
プロテクト メソッド OnListChanged ListChanged イベントを発生させます。
プロテクト メソッド OnPositionChanged PositionChanged イベントを発生させます。
パブリック イベントパブリック イベント
  名前 説明
パブリック イベント AddingNew 項目が基底のリストに追加される前に発生します。
パブリック イベント BindingComplete すべてのクライアントがこの BindingSource にバインドされたときに発生します。
パブリック イベント CurrentChanged 現在バインドされている項目が変更された場合に発生します。
パブリック イベント CurrentItemChanged Current プロパティのプロパティ値が変更された場合に発生します。
パブリック イベント DataError 現在性に関する例外が BindingSource によって表示されずに処理された場合に発生します。
パブリック イベント DataMemberChanged DataMember プロパティの値が変更された場合に発生します。
パブリック イベント DataSourceChanged DataSource プロパティの値が変更された場合に発生します。
パブリック イベント Disposed  コンポーネントの Disposed イベントを待機するイベント ハンドラを追加します。(Component から継承されます。)
パブリック イベント ListChanged 基底のリストまたはリスト内の項目が変更された場合に発生します。
パブリック イベント PositionChanged Position プロパティの値が変更された後に発生します。
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.ComponentModel.IBindingList.AddIndex 検索に使用されるインデックスに PropertyDescriptor を追加します。
インターフェイスの明示的な実装 System.ComponentModel.IBindingList.RemoveIndex 検索に使用されるインデックスから System.ComponentModel.PropertyDescriptor を削除します。
インターフェイスの明示的な実装 System.ComponentModel.ICancelAddNew.CancelNew 保留中の新しい項目をコレクションから破棄します。
インターフェイスの明示的な実装 System.ComponentModel.ICancelAddNew.EndNew 保留中の新しい項目をコレクションにコミットします。
インターフェイスの明示的な実装 System.ComponentModel.ISupportInitialize.BeginInit 初期化の開始を通知するシグナルを BindingSource に送信します。
インターフェイスの明示的な実装 System.ComponentModel.ISupportInitialize.EndInit 初期化の完了を通知するシグナルを BindingSource に送信します。
インターフェイスの明示的な実装 System.ComponentModel.ISupportInitializeNotification.Initialized BindingSource が初期化されるときに発生します。
参照参照

関連項目

BindingSource クラス
System.Windows.Forms 名前空間
BindingSource クラス
BindingNavigator クラス
DataGridView
CurrencyManager
IList
IBindingList
IEditableObject

その他の技術情報

BindingSource コンポーネント



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「BindingSource」の関連用語











BindingSourceのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



BindingSourceのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS