# DataGridViewCellValidatingEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [CellValidating](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/datagridview/..#cellvalidating) event of a [DataGridView](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/datagridview) control.

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

```csharp
public class DataGridViewCellValidatingEventArgs : CancelEventArgs
```

{% endtab %}

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

```visual-basic
Public Class DataGridViewCellValidatingEventArgs
    Inherits CancelEventArgs
```

{% endtab %}
{% endtabs %}

## Properties

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

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns the column index of the cell that needs to be validated.

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

[Object](https://docs.microsoft.com/en-us/dotnet/api/system.object): Return or sets the formatted contents of the cell that needs to be validated.

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

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns the row index of the cell that needs to be validated.

## Used By

| Name                                                                                                                                                              | Description                                                                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridViewCellValidatingEventHandler](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalidatingeventhandler) | Represents the method that will handle the [CellValidating](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/datagridview/..#cellvalidating) event of a [DataGridView](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/datagridview) control. |
