SMART datagrid v.1 > Classes > DataSet

Back  Forward

DataLudi.DataSet.getRowState  method

Return the State of data row which is located in parameter row

If the row is the value beyond the range, that is, if it is less than 0 or greater than rowCount, it will throw an exception. 

function getRowState (row: Integer): DataRowState;
Returns
DataRowState
Parameters
row - Integer. required.
Code -1
    var rowState;
    for (var i = 0; i < dataset.rowCount(); i++) {
        rowState = dataset.getRowState(i);
        // If row state of row is DELETED or the CREATE_AND_DELETED row exists, it will initialize the state of all rows.
        if (rowState == DataRowState.DELETED || rowState == DataRowState.CREATE_AND_DELETE) {
            dataset.clearRowStates([DataRowState.DELETED, DataRowState.CREATE_AND_DELETED], true);
            break;
        }
    }
See Also
getStateRows
getAllStateRows
setRowState
setRowStates
DataRowState
Examples
Data Row States