Finds the record and extends it with provided object.
set([recid], record, [noRefresh])

recid | string, optional, id of the record
record | object, record object
noRefresh | boolean, optional, indicates if record does not need to be updated on screen

Returns boolean.

#### Description

This method will update the record in the .records array and refresh it on the screen (assuming if noRefresh is not provided). The record is identified by the .recid property of the record object, which is a required property for each record object. The second argument record is the record object. The method returns true is at least one record was updated or false otherwise.
If you have grid defined in the following way: $('#grid').w2grid({ name : 'grid', columns: [ { field: 'recid', caption: 'ID', size: '50px' }, { field: 'lname', caption: 'Last Name', size: '30%' }, { field: 'fname', caption: 'First Name', size: '30%' }, { field: 'email', caption: 'Email', size: '40%' }, { field: 'sdate', caption: 'Start Date', size: '120px' }, { field: 'sdate', caption: 'End Date', size: '120px' } ], records: [ { recid: 1, fname: 'John', lname: 'doe', email: 'vitali@gmail.com', sdate: '1/3/2012' }, { recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '2/4/2012' }, { recid: 3, fname: 'Jin', lname: 'Franson', email: '--', sdate: '4/23/2012' }, { recid: 4, fname: 'Susan', lname: 'Ottie', email: 'jdoe@gmail.com', sdate: '5/3/2012' }, { recid: 5, fname: 'Kelly', lname: 'Silver', email: 'jdoe@gmail.com', sdate: '4/3/2012' }, { recid: 6, fname: 'Francis', lname: 'Gatos', email: 'vitali@gmail.com', sdate: '2/5/2012' } ] }); You can update record with recid = 2: w2ui['grid'].set(2, { fname: 'Not Suart', lname: 'Unknown' }); Or you can update one parameter in all records: w2ui['grid'].set({ fname: 'none' }); Please note that the record is not replaced with record, but extended using $.extend() method.