Class GridValidation

GridValidation class

Represents data validation.settings.

public class GridValidation

Properties

NameDescription
AreaList { get; }Represents a collection of GridCellArea 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; }Gets or sets whether the cell value is required.
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; }Indicates whether the data validation input message will be displayed whenever the user selects a cell in the data validation range.
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

NameDescription
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

NameDescription
ServerValidationGets or sets the serverside validation javascript function name.

See Also