GridValidation

GridValidation class

Represents data validation.settings.

public class GridValidation

Constructors

Name Description
GridValidation() The default constructor.

Properties

Name Description
AreaList { get; } Represents a collection of CellArea which contains the data validation settings.
ClientValidationFunction { get; set; } Gets or sets the client validation javascript function name.
ErrorMessage { get; set; } Represents the data validation error message.
ErrorTitle { get; set; } Represents the title of the data-validation error dialog box.
Formula1 { get; set; } Represents the value or expression associated with the data validation.
Formula2 { get; set; } Represents the value or expression associated with the second part of the data validation.
InputMessage { get; set; } Represents the data validation error message.
InputTitle { get; set; } Represents the title of the data-validation input dialog box.
IsRequired { get; set; }
Operator { get; set; } Represents the operator for the data validation.
RegEx { get; set; } Gets or sets the regular expression string.
ShowError { get; set; } Indicates whether the data validation error message will be displayed whenever the user enters invalid data.
ShowInput { get; set; }
ValidationType { get; set; } Gets or sets the validation type.
Value1 { get; } Represents the value associated with the data validation.
ValueList { get; set; } Gets/Sets the value list object.

Methods

Name Description
AddACell(string) add the validation settings in the cell.
AddACell(int, int) add the validation settings in the cell.
AddArea(GridCellArea) Applies the validation to the area.
GetListValue(int, int) Get the value for list of the validation for the specified cell.
LoadValueList(DataView, string, string, bool) Loads value list from a DataView object. You can specify the value field and text field of the DataView. Each value and text pair will be combined to one string, with a comma between them.
RemoveACell(int, int) Remove the validation settings in the cell.
RemoveArea(GridCellArea) Remove the validation settings in the range.

Fields

Name Description
ServerValidation Gets or sets the serverside validation javascript function name.

See Also