SMART datagrid v.1 > Classes > DataSet

Back  Forward

DataLudi.DataSet.canUpdateValue  method

Return true if can update field value of the row specified by row

If updatable of data field is false and the state of row is UPDATED, it will return false

function canUpdateValue (row: Integer, field: Integer): Boolean;
Returns
Boolean
Parameters
row - Integer. required.
field - Integer. required.
Code -1
    $('#update').click(function () {
        // Update if can update the second field of the first row.
        if (dataset.canUpateValue(0, 1)) {
            dataset.setValue(0, 1, 30);
        }
    }
See Also
DataField.updatable
Examples
Grid Data Set Edit