# DataGridViewCellMouseEventHandler

URL: https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler

Version: 4.1
Namespace: **Wisej.Web**

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

Represents the method that will handle mouse-related events raised by aDataGridView .

- C# - VB.NET

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

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

## Parameters

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

## Fired By

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