JavaScript code to be run when the user clicks on a row in the grid. The code receives two variables that provide extra information about the click event:

You can prevent the row being selected by returning false from this code.

Default value


Valid values

Any valid JavaScript code


The following will display an alert indicating the row clicked, and prevent row 3 from being selected:

alert("Row " + rowNum); return (rowNum != 3);