SMART datagrid v.1 > Classes > DataField

Back  Forward

DataLudi.DataField.updatable  property

If specify this value as false, only when the state of data row is .CREATED or CREATE_AND_DELETED, the values corresponding to this field can be updated. In other words, you cannot change the value by GridDataSet.setValue or GridDataSet.updateRow, etc. And, DataSet.canUpdateValue will also return false. 

Defaults to true.

Getter
function updatable(): Boolean
Setter
function setUpdatable(value: Boolean)
Code -1
    $('#updatable').click(function () {
        var field = ds.getFieldByName('fldAddr');
        field.setUpdatable($('#updatable').is(':checked'));
    });
See Also
GridDataSet.setValue
DataSet.canUpdateValue
GridDataSet.setValue
GridDataSet.updateRow
Examples
Grid Data Set Edit