New to Telerik Document ProcessingStart a free 30-day trial

Validation rule that accepts any cell value without restrictions, used primarily for displaying input messages.

Definition

Constructors

Initializes a new AnyValueDataValidationRule that permits all input values.

C#
public AnyValueDataValidationRule(AnyValueDataValidationRuleContext context)
Parameters:contextAnyValueDataValidationRuleContext

The context.

Methods

Evaluates the validation rule and always returns true since any value is considered valid.

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)