SMART datagrid v.1 > Examples

[ grids ver.1.3.0]   Back  Forward

DataRow States  Example

Each data row of DataSet has DataRowState. After loading the data set through GridDataSet.setRows for the first time, if the data row is updated or a new row is appended, the state of the row will be changed as UPDATED or DataRowState.CREATED from DataRowState.NONE. And, when DataSet.softDelete has been specified as true, it will be set as DELETED if the row is deleted and CREATE_AND_DELETED if the row has been CREATED

The state of the data row is displayed in the state cell of Row Indicator. 

Grid - 1
rows

Regardless of getting the state of the data row or modifying or appending the data, the state of the row can be forced to change. 

"none"



""

GridDataSet.getModifiedRowObjects

Above this, please refer to DataSet about the other method and events related to the state of the data row. 

View Source JSP 

See Also
DataRowState
DataSet.softDelete
DataSet.getRowState
DataSet.setRowState
DataSet.setRowStates
DataSet.clearRowStates
DataSet.getStateRows
DataSet.getAllStateRows
GridDataSet.getModifiedRowObjects
EditOptions
GridBase.editOptions
Examples
State Cells