{/* Do not edit this file. It is automatically generated by API Documenter. */}


## EditValidation

Model for verification conditions and methods for column-level or row-level data editing

**Signature:**

```typescript
export interface EditValidation
```

## Remarks

Used in [GridBase.setValidations()](/refs/Class/GridBase#setvalidations).

## Example


```js
// string
gridView.setValidations("values['UnitPrice'] > 100");

// object
gridView.setValidations({
      message: 'Too expensive!',
      criteria: "values['UnitPrice'] > 100"
})

// Arrangement
gridView.setValidations([{
      message: 'Too expensive!',
      criteria: "values['UnitPrice'] > 100"
}])
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [active](/refs/Interface/EditValidation#active) | boolean | Whether verification is in progress |
| [criteria](/refs/Interface/EditValidation#criteria) | string | Verification formula |
| [description](/refs/Interface/EditValidation#description) | string | Explanation when verification fails |
| [level](/refs/Interface/EditValidation#level) | [ValidationLevel](/refs/realgrid#validationlevel) | Validation result level |
| [message](/refs/Interface/EditValidation#message) | string | Error message displayed when verification fails |
| [mode](/refs/Interface/EditValidation#mode) | [ValidationMode](/refs/realgrid#validationmode) | verification mode |
| [name](/refs/Interface/EditValidation#name) | string | name |

## Properties Desc

### active

Whether verification is in progress

`Type` - boolean

<hr/>

### criteria

Verification formula

`Type` - string

<hr/>

### description

Explanation when verification fails

`Type` - string

**Remarks:**

If a message is not specified when verification fails, it is used as a message.

<hr/>

### level

Verification result level

`Type` - [ValidationError](/refs/Interface/ValidationError)

<hr/>

### message

Error message displayed when verification fails

`Type` - string

<hr/>

### mode

verification mode

`Type` - [ValidationLevel](/refs/realgrid#validationlevel)

**Remarks:**

Executes when inserting, updating, or both.

<hr/>

### name

name

`Type` - string

**Remarks:**

It is used as a message when verification fails or when the description is not set.

<hr/>