Mark a GridView row, and move it with the up and down key
Posted by: Fredrik Norméns Blog,
on 20 Mar 2007 |
View original | Bookmarked: 0 time(s)
I have notice that some people would like to add a way of using the key (up & down) buttons to move and mark a row in a GridView control, so I decided to write a post how you can easy add that kind of functionality to a GridView.
To add client-side script event to the row to handle the event onKeyDown (we can use onKeyUp or Press also if we would like) we hook up to the GridView’s RowDataBoundEvent to make access to the current row that will be data bound. We can use the GridViewRowEventArgs’s...