Required library edition:
This event occurs a moment before a row in the grid is selected. onBeforeSelect event passes the following parameters:
grid.attachEvent("onBeforeSelect", function(new_row,old_row){});