GcSpread.Sheets Namespace > Column type : dataValidator Method |
var instance = new GcSpread.Sheets.Column(sheet, index, sheetArea); var returnValue; // Type: DefaultDataValidator returnValue = instance.dataValidator(value);
function dataValidator( value : DefaultDataValidator ) : DefaultDataValidator;
spread.highlightInvalidData(true); var dv = GcSpread.Sheets.DefaultDataValidator.createListValidator("1,2,3"); dv.showInputMessage = true; dv.inputMessage = "Value must be 1, 2 or 3."; dv.inputTitle = "tip"; activeSheet.getColumn(0).dataValidator(dv);