# DataGridViewRowStateChangedEventHandler

Namespace: **Wisej.Web**

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

Represents the method that will handle the [RowStateChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowstatechanged) event of a [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

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

```csharp
public delegate void DataGridViewRowStateChangedEventHandler(Object sender, DataGridViewRowStateChangedEventArgs e)
```

{% endtab %}

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

```visual-basic
Public Delegate Sub DataGridViewRowStateChangedEventHandler(ByVal sender As [Object], ByVal e As DataGridViewRowStateChangedEventArgs)
```

{% endtab %}
{% endtabs %}

## Parameters

| Name       | Type                                                                                                                                                     | Description                                                                                                                                                                              |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **sender** | [Object](https://docs.microsoft.com/dotnet/api/system.object)                                                                                            | The source of the event.                                                                                                                                                                 |
| **e**      | [DataGridViewRowStateChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowstatechangedeventargs) | A [DataGridViewRowStateChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowstatechangedeventargs) that contains the event data. |

## Fired By

| Name                                                                                                                 | Description                                               |
| -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [DataGridView.RowStateChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowstatechanged) | Fired when a row changes state, such as getting selected. |
