SMART datagrid v.1 > Classes > EditOptions

Back  Forward

DataLudi.EditOptions.forceColumnValidationWhenPaste  property

如果为true,就会在运行粘贴时,以单元格为单位,运行验证。 

如果forceRowValidationWhenPastetrue,就会首先运行行单位验证。 

默认值为false.

Getter
function forceColumnValidationWhenPaste(): Boolean
Setter
function setForceColumnValidationWhenPaste(value: Boolean)
Code -1
   grid.setOptions({
        edit: {
            forceRowValidationWhenPaste: true,
            forceColumnValidationWhenPaste: true
        }
    });
Code -2
    grid.setEditOptions({
        forceRowValidationWhenPaste: true,
        forceColumnValidationWhenPaste: true
    });
Code -3
    grid.editOptions().setForceColumnValidationWhenPaste(true);
See Also
forceRowValidationWhenPaste
GridBase.validations
DataColumn.validations
单元格编辑概述
Examples
单元格编辑