SMART datagrid v.1 > Classes > GroupRow

Back  Forward

DataLudi.GroupRow.indexOf  method

If the Grid Row specified by parameter row is the child row of this group row, it will return the corresponding location. 

If not, it will return -1. 

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