# DataGridViewCellMouseEventHandler

Namespace: **Wisej.Web**

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

Represents the method that will handle mouse-related events raised by a [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

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

```csharp
public delegate void DataGridViewCellMouseEventHandler(Object sender, DataGridViewCellMouseEventArgs e)
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Parameters

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

## Fired By

| Name                                                                                                                                           | Description                                                                                                                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridView.CellMouseClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellmouseclick)                             | Occurs whenever the user clicks anywhere on a cell with the mouse.                                                                     |
| [DataGridView.CellMouseDoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellmousedoubleclick)                 | Fired when a cell within the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) is double-clicked.      |
| [DataGridView.CellMouseDown](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellmousedown)                               | Fired when the user presses a mouse button while the pointer is within the boundaries of a cell.                                       |
| [DataGridView.CellMouseMove](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellmousemove)                               | Fired when the mouse pointer moves over the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. |
| [DataGridView.CellMouseUp](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellmouseup)                                   | Fired when the user releases a mouse button while over a cell.                                                                         |
| [DataGridView.ColumnHeaderMouseClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnheadermouseclick)             | Fired when the user clicks a column header.                                                                                            |
| [DataGridView.ColumnHeaderMouseDoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnheadermousedoubleclick) | Fired when a column header is double-clicked.                                                                                          |
| [DataGridView.RowHeaderMouseClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowheadermouseclick)                   | Fired when the user clicks within the boundaries of a row header.                                                                      |
| [DataGridView.RowHeaderMouseDoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#rowheadermousedoubleclick)       | Fired when a row header is double-clicked.                                                                                             |
