Open this page in the API Guide

DataGrid.selectRows Method

Select rows currently displayed in the table by the given row indexes.
 

Parameters

rowIndexes

Type: Array
ElementType: Number (Integer)
Row indexes to select rows.
clearPrevious

Type: Boolean
True to clear the previous selection.
Optional: True
selectParents

Type: Boolean
True to select parent member cells when the rows they span are selected.
Optional: True
 

Remarks

Rows not currently loaded into the table in the browser cannot be selected using this method.