## AddValidation(ICustomValidation) {#addvalidation}

```csharp
public void AddValidation(ICustomValidation val)
```

### See Also

* interface [ICustomValidation](../../../aspose.cells.griddesktop/icustomvalidation/)
* class [GridColumn](../)
* namespace [Aspose.Cells.GridDesktop.Data](../../../aspose.cells.griddesktop.data/)
* assembly [Aspose.Cells.GridDesktop](../../../)

---

## AddValidation(bool, string) {#addvalidation_1}

Adds a validation to the column.

```csharp
public void AddValidation(bool isRequired, string regEx)
```

| Parameter | Type | Description |
| --- | --- | --- |
| isRequired | Boolean | Value indicating whether cell value of this column is required. |
| regEx | String | Regular expression. |

### See Also

* class [GridColumn](../)
* namespace [Aspose.Cells.GridDesktop.Data](../../../aspose.cells.griddesktop.data/)
* assembly [Aspose.Cells.GridDesktop](../../../)


