SMART datagrid v.1 > Classes > GridDataSet

Back  Forward

DataLudi.GridDataSet.clearRows  method

Delete all rows of data set and fire onRefresh, onRowCountChanged events in order. 

If rowCount is 0, it will do nothing. 

function clearRows ();
Returns
Void
Code -1
    ds.onRowCountChanged = function (ds) {
        $('#txtCount').val(ds.rowCount());
    };
    ds.clearRows();
See Also
DataSet.onRefresh
DataSet.onRowCountChanged
DataSet.rowCount
DataSet.clearRowStates
setRows
Examples
Grid Data Set Edit