# DataGridViewCellEventHandler

Namespace: **Wisej.Web**

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

Represents the method that will handle [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) events related to cell and row operations.

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

```csharp
public delegate void DataGridViewCellEventHandler(Object sender, DataGridViewCellEventArgs e)
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Parameters

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

## Fired By

| Name                                                                                                                               | Description                                                                                                                                                                                                                                           |
| ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridView.CellClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellclick)                           | Fired when any part of a cell is clicked.                                                                                                                                                                                                             |
| [DataGridView.CellCommandChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellcommandchanged)         | Fired when the command of a cell changes.                                                                                                                                                                                                             |
| [DataGridView.CellDoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#celldoubleclick)               | Fired when the user double-clicks anywhere in a cell.                                                                                                                                                                                                 |
| [DataGridView.CellEndEdit](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellendedit)                       | Fired when edit mode stops for the current cell.                                                                                                                                                                                                      |
| [DataGridView.CellErrorTextChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellerrortextchanged)     | Fired when the value of the [ErrorText](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcell#errortext) property of a cell changes.                                                                                        |
| [DataGridView.CellMouseEnter](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellmouseenter)                 | Fired when the mouse pointer enters a cell.                                                                                                                                                                                                           |
| [DataGridView.CellMouseLeave](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellmouseleave)                 | Fired when the mouse pointer leaves a cell.                                                                                                                                                                                                           |
| [DataGridView.CellStyleChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellstylechanged)             | Fired when the [Style](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcell#style) property of a [DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) changes. |
| [DataGridView.CellToolTipTextChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#celltooltiptextchanged) | Fired when the value of the [ToolTipText](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcell#tooltiptext) property of a cell changes.                                                                                    |
| [DataGridView.CellValueChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellvaluechanged)             | Fired when the value of a cell changes.                                                                                                                                                                                                               |
| [DataGridView.CellEnter](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellenter)                           | Fired when the current cell changes in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control or when the control receives input focus.                                                                        |
| [DataGridView.CellLeave](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellleave)                           | Fired when a cell loses input focus and is no longer the current cell.                                                                                                                                                                                |
| [DataGridView.CellValidated](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellvalidated)                   | Occurs after the cell has finished validating.                                                                                                                                                                                                        |
| [DataGridView.RowEnter](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowenter)                             | Fired when a row receives input focus but before it becomes the current row.                                                                                                                                                                          |
| [DataGridView.RowLeave](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowleave)                             | Fired when a row loses input focus and is no longer the current row.                                                                                                                                                                                  |
| [DataGridView.RowValidated](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowvalidated)                     | Occurs after a row has finished validating.                                                                                                                                                                                                           |
| [DataGridView.LastCellTab](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#lastcelltab)                       | Fired when the user tabs past the last cell.                                                                                                                                                                                                          |
