SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getSelectedRowIndices  method

将包含在选中区域的索引,返回为数组格式。 

function getSelectedRowIndices (): [Integer];
Returns
[Integer]
Code -1
    var rows = grid.getSelectedRowIndices();
    for (var i = 0; i < rows.length; i++) {
        dataset.deleteRow(rows[i].dataIndex());
    }
see also
GridRow.index
getSelectedDataIndices