View Full Version : Change row background colour on double click

3 Feb 2010, 12:17 AM
Using an array grid example, I want to be able to double click on a particular row and change the background colour for the entire row, but when I double click on a different row, the original one I double clicked on returns to its normal colour.

How would I go about doing this?, as I'm not sure how using getRowClass statement would help me.

3 Feb 2010, 12:55 AM
Use the rowdblclick event. That gives you the row index, then use GridView's getRow to get that and toggle a class (I assume you want to toggle a class on and off)