# PropertyValueDataErrorEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [PropertyValueDataError](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/propertygrid/..#propertyvaluedataerror) event of a [PropertyGrid](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/propertygrid) control.

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

```csharp
public class PropertyValueDataErrorEventArgs : CancelEventArgs
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Constructors

### ![](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)PropertyValueDataErrorEventArgs(changingItem, exception)

Initializes a new instance of the [PropertyValueDataErrorEventArgs](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/propertygrid/wisej.web.propertyvaluedataerroreventargs) class.

| Name             | Type                                                                                                  | Description                                                   |
| ---------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| **changingItem** | [GridItem](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/propertygrid/wisej.web.griditem) | The item in the grid that caused the data error.              |
| **exception**    | [Exception](https://docs.microsoft.com/en-us/dotnet/api/system.exception)                             | The exception that occurred while writing the property value. |

## 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)ChangingItem

[GridItem](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/propertygrid/wisej.web.griditem): Returns the [GridItem](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/propertygrid/wisej.web.griditem) that is being changed.

### ![](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)Exception

[Exception](https://docs.microsoft.com/en-us/dotnet/api/system.exception): Returns the exception that represents the error.

## Used By

| Name                                                                                                                                                      | Description                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| [PropertyValueDataErrorEventHandler](https://docs.wisej.com/api/v2.2/wisej.web/lists-and-grids/propertygrid/wisej.web.propertyvaluedataerroreventhandler) | The event handler class that is invoked when a property in the grid cannot receive the value modified by the user. |
