dhtmlxgrid hightlight the particular row

Hi,



I have separate buttons previous and next.When i click the next and previous buttons,how can i highlight the particular row in the grid,highlight means when i click the next button the next row in the grid should highlight like the rectangular box over the text of the grid.



please help me

highlight means when i click the next button the next row in the grid
should highlight like the rectangular box over the text of the grid.


If you mean just visual marking it can be done by applying some custom css styles, which will cause necessary change in look

    grid.setRowTextStyle(row_id," any css rules here ");

or access row directly as
    grid.rowsAr[row_id].className=“some”;

In most cases changing row bg color may be enough

    grid.setRowColor(row_id,“red”);