## GridValidation class

Represents data validation.settings.

```csharp
public class GridValidation
```

## Constructors

| Name | Description |
| --- | --- |
| [GridValidation](gridvalidation/)() | The default constructor. |

## Properties

| Name | Description |
| --- | --- |
| [AreaList](../../aspose.cells.griddesktop.data/gridvalidation/arealist/) { get; } | Represents a collection of CellArea which contains the data validation settings. |
| [ClientValidationFunction](../../aspose.cells.griddesktop.data/gridvalidation/clientvalidationfunction/) { get; set; } | Gets or sets the client validation javascript function name. |
| [CustomMsgForStopEdit](../../aspose.cells.griddesktop.data/gridvalidation/custommsgforstopedit/) { get; set; } | Gets or sets the custom message to show when user edits invalid value. |
| [CustomMsgForStopOper](../../aspose.cells.griddesktop.data/gridvalidation/custommsgforstopoper/) { get; set; } | Gets or sets the custom message to show when user's operation brings invalid value. |
| [CustomMsgTitle](../../aspose.cells.griddesktop.data/gridvalidation/custommsgtitle/) { get; set; } | Gets or sets the custom message title to show when a invalid value input. |
| [CustomValidation](../../aspose.cells.griddesktop.data/gridvalidation/customvalidation/) { get; set; } | Gets or sets the custom validation object. |
| [ErrorMessage](../../aspose.cells.griddesktop.data/gridvalidation/errormessage/) { get; set; } | Represents the data validation error message. |
| [ErrorTitle](../../aspose.cells.griddesktop.data/gridvalidation/errortitle/) { get; set; } | Represents the title of the data-validation error dialog box. |
| [Formula1](../../aspose.cells.griddesktop.data/gridvalidation/formula1/) { get; set; } | Represents the value or expression associated with the data validation. |
| [Formula2](../../aspose.cells.griddesktop.data/gridvalidation/formula2/) { get; set; } | Represents the value or expression associated with the second part of the data validation. |
| [InputMessage](../../aspose.cells.griddesktop.data/gridvalidation/inputmessage/) { get; set; } | Represents the data validation error message. |
| [InputTitle](../../aspose.cells.griddesktop.data/gridvalidation/inputtitle/) { get; set; } | Represents the title of the data-validation input dialog box. |
| [IsRequired](../../aspose.cells.griddesktop.data/gridvalidation/isrequired/) { get; set; } |  |
| [Operator](../../aspose.cells.griddesktop.data/gridvalidation/operator/) { get; set; } | Represents the operator for the data validation. |
| [RegEx](../../aspose.cells.griddesktop.data/gridvalidation/regex/) { get; set; } | Gets or sets the regular expression string. |
| [ShowError](../../aspose.cells.griddesktop.data/gridvalidation/showerror/) { get; set; } | Indicates whether the data validation error message will be displayed whenever the user enters invalid data. |
| [ShowInput](../../aspose.cells.griddesktop.data/gridvalidation/showinput/) { get; set; } |  |
| [ValidationType](../../aspose.cells.griddesktop.data/gridvalidation/validationtype/) { get; set; } | Gets or sets the validation type. |
| [ValueList](../../aspose.cells.griddesktop.data/gridvalidation/valuelist/) { get; set; } | Gets/Sets the value list object. |

## Methods

| Name | Description |
| --- | --- |
| [AddACell](../../aspose.cells.griddesktop.data/gridvalidation/addacell/#addacell_1)(string) | add the validation settings in the cell. |
| [AddACell](../../aspose.cells.griddesktop.data/gridvalidation/addacell/#addacell)(int, int) | add the validation settings in the cell. |
| [AddArea](../../aspose.cells.griddesktop.data/gridvalidation/addarea/)(GridCellArea) | Applies the validation to the area. |
| [RemoveACell](../../aspose.cells.griddesktop.data/gridvalidation/removeacell/)(int, int) | Remove the validation settings in the cell. |
| [RemoveArea](../../aspose.cells.griddesktop.data/gridvalidation/removearea/)(GridCellArea) | Remove the validation settings in the range. |

### See Also

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


