get grid Object onRowSelect event.


In a jsp page, I have 3 or more grid object. This number will change randomly. I am adding ‘onRowSelect’ event on each grid. ‘onRowSelect’ event, internally it will pass ‘rowId’ and ‘index’ of the selected cell. Is there any way to get the grid object of a selected row.

Thanks in advance,


Inside “onRowSelect” event handler “this” will refer to the necessary dhtmlxGrid object:

function doOnRowSelect(rowId,cellIndex){
alert(this.cellById(rowId,cellIndex).getValue()); //get value of the celected cell