adds any user-defined handler to available events
myGrid.attachEvent("onRowSelect",function(rowId,cellIndex){ alert("Row with id="+rowId+" was selected"); });