# DataGridViewCellValueEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [CellValueNeeded](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellvalueneeded) and [CellValuePushed](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellvaluepushed) events of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

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

```csharp
public class DataGridViewCellValueEventArgs : EventArgs
```

{% endtab %}

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

```visual-basic
Public Class DataGridViewCellValueEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataGridViewCellValueEventArgs(columnIndex, rowIndex, value)

Initializes a new instance of the [DataGridViewCellValueEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventargs) class.

| Name            | Type                                                          | Description                                                            |
| --------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The index of the column containing the cell that the event occurs for. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The index of the row containing the cell that the event occurs for.    |
| **value**       | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The current value or null.                                             |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than 0; or *rowIndex* is less than 0.

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns a value indicating the column index of the cell that the event occurs for.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns a value indicating the row index of the cell that the event occurs for.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Value

[Object](https://docs.microsoft.com/dotnet/api/system.object): Returns or sets the value of the cell that the event occurs for.

## Used By

| Name                                                                                                                                               | Description                                                                                                                                                                                                                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridViewCellValueEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventhandler) | Represents the method that will handle the [CellValueNeeded](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellvalueneeded) event or [CellValuePushed](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellvaluepushed) event of a [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). |
