# DataGridViewDataErrorEventHandler

Namespace: **Wisej.Web**

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

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

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

```csharp
public delegate void DataGridViewDataErrorEventHandler(Object sender, DataGridViewDataErrorEventArgs e)
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Parameters

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

## Fired By

| Name                                                                                                     | Description                                                                                                                 |
| -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [DataGridView.DataError](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#dataerror) | Fired when a data parsing or data validation operation throws an exception, or when committing data to a data source fails. |
