SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.focusedDataIndex  property

現在入力フォーカスを持つグリッド行のデータセット内のインデックス。 グリッド行インデックスはfocusedRowIndexで、 セルの位置は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
CellIndex
Examples
Focused Cell