SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.index  property

显示在网格的顺序。 

如父行是被折叠的状态或从筛选中被排除的行等,当前未被显示的行,将会返回-1。 显示在网格的第一个行的值是0。也就是说,该值具有从0到rowCount - 1之间的值。 

默认值为-1.

Getter
function index(): Integer
Code -1
    $('#getIndex').click(function () { 
        var rowIndex = grid.focusedRow().index();
        console.log(rowIndex + "第 个行。");
    };
See Also
isVisible
rowCount
Examples
行指示器