SMART datagrid v.1 > Classes > DataSet

Back  Forward

DataLudi.DataSet.softDelete  property

If it is true, when request to delete, it will not delete actually but only change the state as DELETED or CREATED_AND_DELETED

When deleting the rows by GridDataSet.deleteRow, if this property is true, the rows of which state is NONE or UPDATED will be changed as DELETED, and the rows of CREATED will be changed as CREATE_AND_DELETED, but the rows will not be deleted actually. There will be no change to the rows of deleted state. However, if deleteCreated is true, CREATED rows will actually be deleted. 

Note

Defaults to false.

Getter
function softDelete(): Boolean
Setter
function setSoftDelete(value: Boolean)
Code -1
    dataset.setSoftDelete(true);
See Also
deleteCreated
deletedCount
clearRowStates
DataRowState
Examples
Data Row States
Row Deleting