SMART datagrid v.1 > Classes > DataSet

Back  Forward

DataLudi.DataSet.checkStates  property

If it is true, when add, delete or change the data row, it will change the State of data row. 

Defaults to true.

Getter
function checkStates(): Boolean
Setter
function setCheckStates(value: Boolean)
Code -1
    $('#addRows').click(function () {
        // When adding this row, it has stopped to set the state as "created".
        dataset.setCheckStates(false);
        try {
            for (var i = 0; i < 10; i++) {
                dataset.appendRow([v1, v2, v3]);
            }
        } finally {
            dataset.setCheckStates(true);
        }
    };
See Also
DataRowState
Examples
Load CSV Data
Load JSON Data
Load XML Data