SMART datagrid v1.4 > 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
Focused Cell