SMART datagrid v.1 > Classes > DataSet
The number of data rows which have one state among States specified in parameter states.
var stateCount = dataset.getRowStateCount([DataRowState.CREATED, DataRowState.UPDATED]);
if (stateCount > 0) {
// If there is the updated or created row, it will be exported to Excel.
new DataLudi.GridExcelExporter().export(grid, {
target: "local",
fileName: "local.xlsx",
});
}