# DataGridViewRowsRemovedEventArgs

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Provides data for the [RowsRemoved](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowsremoved) event.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DataGridViewRowsRemovedEventArgs : EventArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DataGridViewRowsRemovedEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataGridViewRowsRemovedEventArgs(rowIndex, rowCount)

Initializes a new instance of the [DataGridViewRowsRemovedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsremovedeventargs) class.

| Name         | Type                                                        | Description                                                                                               |
| ------------ | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The zero-based index of the row that was deleted, or the first deleted row if multiple rows were deleted. |
| **rowCount** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The number of rows that were deleted.                                                                     |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowCount

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the number of rows that were deleted.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the zero-based index of the row deleted, or the first deleted row if multiple rows were deleted.

## Used By

| Name                                                                                                                                                   | Description                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridViewRowsRemovedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsremovedeventhandler) | Represents the method that will handle the [RowsRemoved](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowsremoved) event of a [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). |
