# DataGridViewColumnEventHandler

Namespace: **Wisej.Web**

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

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

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

```csharp
public delegate void DataGridViewColumnEventHandler(Object sender, DataGridViewColumnEventArgs e)
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Parameters

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

## Fired By

| Name                                                                                                                                     | Description                                                                                                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridView.ColumnAdded](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnadded)                             | Fired when a column is added to the control.                                                                                                                              |
| [DataGridView.ColumnFillWeightChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnfillweightchanged)     | Fired when the [FillWeight](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#fillweight) property changes.                               |
| [DataGridView.ColumnMaximumWidthChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnmaximumwidthchanged) | Fired when the value of the [MaximumWidth](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#maximumwidth) property for a column changes. |
| [DataGridView.ColumnMinimumWidthChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnminimumwidthchanged) | Fired when the value of the [MinimumWidth](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#minimumwidth) property for a column changes. |
| [DataGridView.ColumnNameChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnnamechanged)                 | Fired when the [Name](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) property changes.                                           |
| [DataGridView.ColumnRemoved](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnremoved)                         | Fired when a column is removed from the control.                                                                                                                          |
| [DataGridView.ColumnSortModeChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnsortmodechanged)         | Fired when the value of the [SortMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#sortmode) property changes.                      |
| [DataGridView.ColumnWidthChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnwidthchanged)               | Fired when the value of the [Width](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#width) property for a column changes.               |
| [DataGridView.ColumnDisplayIndexChanged](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columndisplayindexchanged) | Fired when the value the [DisplayIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#displayindex) property for a column changes.    |
