Onclick event problem Grid

What i want to achive is when single clicked on a row, a event happens. I tried

grid = dhtmlXGridToTable(“SearchGrid”);
grid.attachEvent(onRowSelected)

but what happens is when i hover a row, the event is executed. And that’s not what i want, i want the event executed when there’s 1 single click on a row.

What i’m doing wrong?

Try to use following code:

grid.attachEvent("onRowSelect", function(id,ind){ //put your code here });

Thanx, problem solved :smiley: