DataGridView.AllowUserToDeleteRowsChanged イベント

定義

AllowUserToDeleteRowsChanged プロパティの値が変化したときに発生します。

public:
 event EventHandler ^ AllowUserToDeleteRowsChanged;
public event EventHandler AllowUserToDeleteRowsChanged;
member this.AllowUserToDeleteRowsChanged : EventHandler 
Public Custom Event AllowUserToDeleteRowsChanged As EventHandler 

イベントの種類

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

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

private void DataGridView1_AllowUserToDeleteRowsChanged(Object sender, EventArgs e) {

   MessageBox.Show("You are in the DataGridView.AllowUserToDeleteRowsChanged event.");
}
Private Sub DataGridView1_AllowUserToDeleteRowsChanged(sender as Object, e as EventArgs) _ 
     Handles DataGridView1.AllowUserToDeleteRowsChanged

   MessageBox.Show("You are in the DataGridView.AllowUserToDeleteRowsChanged event.")

End Sub

注釈

イベントの処理方法の詳細については、「イベントの 処理と発生」を参照してください。

適用対象

こちらもご覧ください