DataGridViewBindingCompleteEventArgs クラス

定義

DataBindingComplete イベントのデータを提供します。

public ref class DataGridViewBindingCompleteEventArgs : EventArgs
public class DataGridViewBindingCompleteEventArgs : EventArgs
type DataGridViewBindingCompleteEventArgs = class
    inherit EventArgs
Public Class DataGridViewBindingCompleteEventArgs
Inherits EventArgs
継承
DataGridViewBindingCompleteEventArgs

次のコード例では、この型の使用方法を示します。 この例では、イベント ハンドラーがイベントの DataBindingComplete 発生を報告します。 このレポートは、イベントが発生したタイミングを知るのに役立ち、デバッグに役立ちます。 複数のイベントまたは頻繁に発生するイベントを報告するには、 を Console.WriteLine に置き換えるかShow、複数行TextBoxにメッセージを追加することを検討してください。

コード例を実行するには、 という名前DataGridView1の型DataGridViewのインスタンスを含むプロジェクトに貼り付けます。 次に、イベント ハンドラーが イベントに関連付けられていることを確認します DataBindingComplete

private void DataGridView1_DataBindingComplete(Object sender, DataGridViewBindingCompleteEventArgs e) {

System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder();
messageBoxCS.AppendFormat("{0} = {1}", "ListChangedType", e.ListChangedType );
messageBoxCS.AppendLine();
MessageBox.Show(messageBoxCS.ToString(), "DataBindingComplete Event" );
}
Private Sub DataGridView1_DataBindingComplete(sender as Object, e as DataGridViewBindingCompleteEventArgs) _ 
     Handles DataGridView1.DataBindingComplete

    Dim messageBoxVB as New System.Text.StringBuilder()
    messageBoxVB.AppendFormat("{0} = {1}", "ListChangedType", e.ListChangedType)
    messageBoxVB.AppendLine()
    MessageBox.Show(messageBoxVB.ToString(),"DataBindingComplete Event")

End Sub

注釈

イベントはDataBindingComplete、データ ソースの内容が変更されたとき、またはコントロールの 、DataMember、または BindingContext プロパティDataGridViewDataSource値が変更されたときに発生します。

このクラスは、 によって CurrencyManager 基になるリストに加えられた変更について説明します。

コンストラクター

DataGridViewBindingCompleteEventArgs(ListChangedType)

DataGridViewBindingCompleteEventArgs クラスの新しいインスタンスを初期化します。

プロパティ

ListChangedType

リストがどのように変更されたかを示す値を取得します。

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください