Spread.Sheets Documentation
value2 Method
GC.Spread.Sheets.DataValidation Namespace > DefaultDataValidator type : value2 Method
The base row.
The base column.
Gets the second value of the data validation.
Syntax
var instance = new GC.Spread.Sheets.DataValidation.DefaultDataValidator(condition);
var value; // Type: object
value = instance.value2(baseRow, baseColumn);
function value2( 
   baseRow : number,
   baseColumn : number
) : object;

Parameters

baseRow
The base row.
baseColumn
The base column.

Return Value

The second value.
Example
This example validates a cell value.
var nCondition = new GC.Spread.Sheets.ConditionalFormatting.Condition(GC.Spread.Sheets.ConditionalFormatting.ConditionType.cellValueCondition);
nCondition.compareType(GC.Spread.Sheets.ConditionalFormatting.GeneralComparisonOperators.equalsTo);
nCondition.expected(0);
//When the option is false, the validation fails and the red alert is displayed.
//When the option is true, the blank cell is treated as zero and the validation is successful.
nCondition.treatNullValueAsZero(false);
var validator = new GC.Spread.Sheets.DataValidation.DefaultDataValidator(nCondition);
validator.type(GC.Spread.Sheets.DataValidation.CriteriaType.custom);
validator.ignoreBlank(false);
activeSheet.getCell(0, 0, GC.Spread.Sheets.SheetArea.viewport).validator(validator);
spread.options.highlightInvalidData = true;
activeSheet.setValue(0, 0, null);
alert(validator.value2());
See Also

Reference

DefaultDataValidator type