SMART datagrid v.1 > Types

Back  Forward

DataLudi.DataRowState

Data state of Grid Row

Data Row or Tree Row is connected to one row of Data Set, and it returns this state value through dataState property. And, it can also directly get the state of data set row through DataSet.getRowState method. 

Values
NONE"none"The state not changed since initialized.
CREATED"created"Created row.
UPDATED"updated"Updated row.
DELETED"deleted"Deleted row.
CREATE_AND_DELETED"createAndDeleted"Deleted row after created.

Code -1
    $("#chkDirty").click(function () {
        var row = grid.focusedRow();
        if (row && row.dataState() === DataLudi.DataRowState.UPDATED) {
            alert('changed');
        }
    });
See Also
GridRow.dataState
DataSet.getRowState
DataRow
TreeRow
Examples
Data Row States
State Cells