Check documentation for the latest version of dhtmlxSuite selectRow DHTMLX Docs

selectRow

selects a row (and its first cell)

void selectRow(number|HTMLElement row,boolean fl,boolean preserve,boolean show);
rownumber|HTMLElementrow index or row object
flbooleanif true, call function on select (optional, false by default)
preservebooleanpreserve previously selected rows, true/false (false by default). Multi select mode should be enabled.
showbooleantrue|false - scroll row to view, true by default

Example

//select the first row in the grid
mygrid.selectRow(0);
//select the first row in the grid, call the "onRowSelect" function,
//preserve previously selected rows, scroll row to view
mygrid.selectRow(0,true,true,true);

Back to top