SMART datagrid v.1 > Classes > DataSet
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.
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;
}
}