SMART datagrid v.1 > Classes > GridDataSet

Back  Forward

DataLudi.GridDataSet.moveRow  method

Move the values of data row in row location to the row location of newRow. If row or newRow is beyond the range, it will throw RangeError exception. 

function moveRow (row: Number, newRow: Number);
Returns
Void
Parameters
row - Number. required.
newRow - Number. required.
Code -1
    var row = grid.focusedDataRow();
    if (row && row.dataIndex() < ds.rowCount() - 1) {
        ds.moveRow(row.dataIndex(), row.dataIndex() + 1);
    }
See Also
moveRows