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
onCurrentChanging
onCurrentChanged
onCurrentRowChanged
GridRow.dataIndex
CellIndex
Examples
聚焦单元格