System.Windows.Forms.DataGridViewRowCancelEventArgs Class

Provides data for the DataGridView.UserDeletingRow event of a System.Windows.Forms.DataGridView.

See Also: DataGridViewRowCancelEventArgs Members

Syntax

public class DataGridViewRowCancelEventArgs : System.ComponentModel.CancelEventArgs

Remarks

To cancel the deletion of a row in a DataGridView.UserDeletingRow event handler, set the System.ComponentModel.CancelEventArgs.Cancel property to true.

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