DataLudi Grid v.1 > Classes > GridRow

Back  Forward

GridRow.setData  method

Update field value located at field of this GridRow by value parameter. 

If this row is connected to data row of DataSet, returns value corresponding to the field location of this row. And if it is row on updating or appending, returns value saved in editing buffer. The current field value is able to get by getData

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