SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getRow  method

Return Row object of the location specified by rowIndex parameter. 

Throw an exception if the location is beyond the range. 

function getRow (rowIndex: Integer): GridRow;
Returns
GridRow
Parameters
rowIndex - Integer. required.
Code -1
    $('#deleteRow').click(function () {
        var row = grid.getRow(0);
        if (row) {
            var r = row.dataIndex();
            if (r >= 0) {
                dataSet.deleteRow(r);
            }
        }
    }
See Also
getRows
GridRow
Examples
Hello Grid