Select a row in a GridView by clicking anywhere on the row
Here's how to select a row in a GridView by clicking anywhere on the row. On RowCreated you set
e.Row.Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(
new PostBackOptions( GridView1, "Select$" + e.Row.RowIndex)));
I got some help from this post, even though he was looking for an answer to a different problem.
Etiquetas: asp.net
0 Comments:
Enviar um comentário
<< Home