GridValidationCollection.Add

Add(GridValidation)

Add a GridValidation to the collection.

public int Add(GridValidation validation)
ParameterTypeDescription
validationGridValidationA validation object.

Return Value

GridValidation object index.

See Also


Add()

Add a GridValidation to the collection.

public GridValidation Add()

Return Value

GridValidation the added GridValidation instance.

See Also


Add(string)

Add a GridValidation to the collection.the validation is applied to the specificed cell.

public GridValidation Add(string cellname)
ParameterTypeDescription
cellnameStringthe name of the cell.

Return Value

GridValidation the added GridValidation instance.

See Also


Add(int, int)

Add a GridValidation to the collection.the validation is applied to the specificed cell.

public GridValidation Add(int row, int col)
ParameterTypeDescription
rowInt32Row index of cell.
colInt32Column index of cell.

Return Value

GridValidation the added GridValidation instance.

See Also


Add(string, bool, string)

Adds a validation to a specified cell by cell name.

public void Add(string cellName, bool isRequired, string regEx)
ParameterTypeDescription
cellNameStringName of grid cell.
isRequiredBooleanValue indicating whether cell value is required.
regExStringRegular expression.

See Also


Add(int, int, ICustomValidation)

Adds a validation to a specified cell at row column index.

public void Add(int row, int col, ICustomValidation customValidation)
ParameterTypeDescription
rowInt32Row index of cell.
colInt32Column index of cell.
customValidationICustomValidationCustom validaton object.

See Also


Add(int, int, bool, string)

Adds a validation to a specified cell at row column index.

public void Add(int row, int col, bool isRequired, string regEx)
ParameterTypeDescription
rowInt32Row index of cell.
colInt32Column index of cell.
isRequiredBooleanValue indicating whether cell value is required.
regExStringRegular expression.

See Also


Add(string, ICustomValidation)

Adds a validation to a specified cell by cell name.

public void Add(string cellName, ICustomValidation customValidation)
ParameterTypeDescription
cellNameStringName of grid cell.
customValidationICustomValidationCustom validaton object.

See Also