SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.getAncestors  method

Return from Parent Row to the rows of top level in order as nearest to this grid row as array. 

It will return null if there is no parent row. 

function getAncestors (): [GridRow];
Returns
[GridRow]
Code -1
    var row = grid.focusedRow();
    if (row) {
        var rows = row.getAncestors();
        grid.checkRows(rows, true);
    }
See Also
parent
getAncestor
GridBase.focusedRow
GridBase.checkRows
Examples
Row Grouping