SMART datagrid v.1 > Classes > GridRow
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.
grid.onCurrentChanged = function (grid, newIndex) {
var row = newIndex.getRow(grid);
if (row && row.dataIndex() >= 0) {
$('#salary').val(row.getData('salary'));
}
};