SMART datagrid v.1 > Classes > GroupRow

Back  Forward

DataLudi.GroupRow.isDescendant  method

If the Grid Row specified by parameter row is the descendant of this group row, it will return true

function isDescendant (row: GridRow): Boolean;
Returns
Boolean
Parameters
row - GridRow. required.
Code -1
    var row = grid.getRowOfDataIndex(0);
    var group = grid.focusedRow();
    if (group instanceof GroupRow) {
        if (group.isDescendant(row)) {
            grid.setFocusedRow(row, true);
        }
    }
See Also
count
children
descendantCount
getDescendants
Examples
Row Grouping
Merged Mode Grouping