New to Telerik Document ProcessingStart a free 30-day trial

Validation rule using a custom formula expression that returns a boolean result determining cell validity.

Definition

Constructors

Initializes a new CustomDataValidationRule with a formula expression that determines validity.

C#
public CustomDataValidationRule(SingleArgumentDataValidationRuleContext context)
Parameters:contextSingleArgumentDataValidationRuleContext

The context.

Methods

Evaluates the custom formula expression and returns true if the result is a boolean true value.

C#
protected override bool EvaluateOverride(Worksheet worksheet, int rowIndex, int columnIndex, ICellValue cellValue)
Parameters:worksheetWorksheet

The worksheet.

rowIndexint

Index of the row.

columnIndexint

Index of the column.

cellValueICellValue

The cell value.

Returns:

bool

Retrurns True if the rule is satisfied, else returns False.

Overrides: DataValidationRuleBase.EvaluateOverride(Worksheet, int, int, ICellValue)