SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.getRowObject  method

Return all field values of this grid row as JSON object. 

If this row is connected to the data row of DataSet, it will return the values of the corresponding row. If it is the row being updated or appended, it will return the values of edit buffer. 

function getRowObject (): Object;
Returns
Object
Code -1
    $('#moveValues').click(function () {
        var row = grid.focusedRow();
        if (row && row.dataIndex() >= 0) {
            var obj = row.getRowObject();
            grid2.dataSource().appendRow(obj);        
        }
    }
See Also
getData
getRwoData
DataSet
GridDataSet.appendRow
Examples
Hello Grid