Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To add any kind of validation to a column, please follow the steps below:
IMPORTANT: For more information about the types of validation (or validation modes like Is Required Validation, Regular Expressions Validation and Custom Validation) and implementing Custom Validation, please refer to Working with Validations in Worksheets.
To access a specific column validation, please follow the steps below:
//Accessing first worksheet of the Grid
Worksheet sheet = gridDesktop1.Worksheets[0];
//Accessing the Validation object applied on a specific column
Validation validation = sheet.Columns[2].Validation;
//Editing the attributes of Validation
validation.IsRequired = true;
validation.RegEx = "";
validation.CustomValidation = null;
To remove a specific column validation from the worksheet, please follow the steps below:
//Accessing first worksheet of the Grid
Worksheet sheet = gridDesktop1.Worksheets[0];
//Removing the Validation applied on a specific column
sheet.Columns[2].RemoveValidation();
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.