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