SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.dataIndex  property

If this row is connected to data row of DataSet, it will return row index of this data row. If not, it will return -1. Currently, the grid row connected to data set is DataRow objects. 

Defaults to -1.

Getter
function dataIndex(): Integer
Code -1
    grid.onCurrentChanged = function (grid, newIndex) {
        var row = newIndex.getRow(grid);
        if (row && row.dataIndex() >= 0) {
            $('#salary').val(row.getData('salary'));
        }
    };
See Also
getData
DataRow
GridDataSet
Examples
Hello Grid
Grid Data Set Edit