我想在粘贴时更改数据。我要粘贴许多行,并且要更改粘贴的数据。 我正在尝试粘贴事件,但无法获取粘贴行的索引。
答案 0 :(得分:0)
您可以使用发送到粘贴事件的事件数据:
grid.pasting.addHandler(function(s, e) {
let row = e.row; // gets the starting row index
let rng = e.range; // gets the whole cell range which were affected
});