niko 发表于 2012-12-13 20:58
var index = grid.indexOf(row);
var row2 = grid.getAt(index+1);
多谢,我看你们移动行的代码,
function moveUp() {
var row = grid.getSelected();
if (row) {
var index = grid.indexOf(row);
grid.moveRow(row, index - 1);
}
}
function moveDown() {
var row = grid.getSelected();
if (row) {
var index = grid.indexOf(row);