SMART datagrid v.1 > Classes > GridDataSet
Delete data row of the location specified by row. If the data row is deleted actually, onRowDeleted, DataSet.onDataChanged, onRowCountChanged events will be fired in order. If softDeleting is true, it will run as Table-1 below.
Current State | Execution result |
---|---|
CREATED | If deleteCreated value of data set is true, it will delete actually, else will change the state as CREATE_AND_DELETED. |
DELETED, CREATE_AND_DELETED | Do nothing. |
NONE | Change the state as DELETED. |
var row = grid.focusedRow();
if (row && row.dataIndex() >= 0) {
ds.deleteRow(row.dataIndex());
}