# DataGridViewCellParsingEventHandler

Namespace: **Wisej.Web**

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

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

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

```csharp
public delegate void DataGridViewCellParsingEventHandler(Object sender, DataGridViewCellParsingEventArgs e)
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Parameters

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

## Fired By

| Name                                                                                                         | Description                                                             |
| ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [DataGridView.CellParsing](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellparsing) | Fired when a cell leaves edit mode if the cell value has been modified. |
