System.Windows.Forms.DataGridView.UserDeletingRow Event

Occurs when the user deletes a row from the System.Windows.Forms.DataGridView control.

Syntax

public event DataGridViewRowCancelEventHandler UserDeletingRow

Remarks

This event can be canceled to prevent a row deletion from being completed.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0