SMART datagrid v.1 > Classes > GridRow

Back  Forward

DataLudi.GridRow.getAncestor  method

Return the group row corresponding to parameter level among top Group Rows including this grid row. 

The Level of top row being displayed in grid is 1

function getAncestor (level: Integer): GridRow;
Returns
GridRow
Parameters
level - Integer. required.
Code -1
    var row = grid.focusedRow();
    if (row) {
        var p = row.getAncestor(1);
        grid.setChecked(p, true);
        grid.setFocusedRow(p);
    }
See Also
parent
level
getAncestors
GroupRow
Examples
Row Grouping