DHTMLX Docs & Samples Explorer

getRowIndex(row_id)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

gets row index by id (grid only)

  • row_id - row id

Returns row index or -1 if there is no row with specified id

   //get index of the row with id "row1"
   var rowIndex=mygrid.getRowIndex("row1");

See also: getRowId