SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.focusedDataIndex  property

Index within data set of grid row which currently has input focus. 

You can know grid row index through focusedRowIndex and cell location through focusedIndex

Getter
function focusedDataIndex(): Integer
Code -1
    $('#delete').click(function () {
        var row = grid.focusedDataIndex();
        if (row >= 0) {
            dataset.deleteRow(row);
        }
    });
See Also
focusedIndex
focusedRowIndex
focusedColumn
onCurrentChanging
onCurrentChanged
onCurrentRowChanged
GridRow.dataIndex
CellIndex
Examples
Focused Cell