SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.setValue  method

Update the field value which is located in field of this grid row as parameter value

If this row is connected to data row of DataSet, it will update the value corresponding to field location of the corresponding row. If it is the row being updated or appended, it will change the value saved in edit buffer. You can get the current field value by getData

function setValue (field: Integer, value: *);
Returns
Void
Parameters
field - Integer. required.
value - *. required.
Code -1
    $('#setValue').click(function () {
        var row = grid.focusedRow();
        row.setValue(0, $('#value'));
    });
See Also
getValue
getRowData
getRwoObject
DataSet
Examples
Hello Grid