SMART datagrid v.1 > Classes > EditOptions

[ grids ver.1.3.4]   Back  Forward

DataLudi.EditOptions.pasteByCell  property

如果为true,就会在粘贴多个单元格时,将会替代updateRow而通过setValue而储存值。 

每次粘贴个别单元格的值时,将会触发onValueChanged事件。 而且,可以通过指定与updateByCell相同的属性,提供一致的UI。 

默认值为false.

Getter
function pasteByCell(): Boolean
Setter
function setPasteByCell(value: Boolean)
Code -1
    grid.setOptions({
        edit: {
            updateByCell: true,
            pasteByCell: true
        }
    });
Code -2
    grid.setEditOptions({
        updateByCell: true,
        pasteByCell: true
    });
Code -3
    grid.editOptions().setPasteByCell(true);
See Also
updateByCell
pasteCallback
GridDataSet.setValue
TreeDataSet.setValue
onValueChanged
onValueChanged
Examples
剪贴板粘贴
剪贴板复制