DataGridViewRowCancelEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides data for the UserDeletingRow event of a DataGridView.
- C#
- VB.NET
public class DataGridViewRowCancelEventArgs : CancelEventArgs
Public Class DataGridViewRowCancelEventArgs
Inherits CancelEventArgs
Constructors
DataGridViewRowCancelEventArgs(dataGrid, rowIndex)
Initializes a new instance of the DataGridViewRowCancelEventArgs class.
| Name | Type | Description |
|---|---|---|
| dataGrid | DataGridView | DataGridView that owns the row. |
| rowIndex | Int32 | The index of the DataGridViewRow that the event occurred for. |
Throws:
- ArgumentNullException dataGrid is null.
- ArgumentOutOfRangeException rowIndex is -1 or greater than the number of rows.
DataGridViewRowCancelEventArgs(row)
Initializes a new instance of the DataGridViewRowCancelEventArgs class.
| Name | Type | Description |
|---|---|---|
| row | DataGridViewRow | The DataGridViewRow that the event occurred for. |
Throws:
- ArgumentNullException row is null.
Properties
Row
DataGridViewRow: Returns the DataGridViewRow that the user is deleting.
RowIndex
Int32: Returns the index of the DataGridViewRow that the user is deleting.
Used By
| Name | Description |
|---|---|
| DataGridViewRowCancelEventHandler | Represents the method that will handle the UserDeletingRow event of a DataGridView. |