Facebook Twitter Gplus LinkedIn YouTube Google Maps RSS
Home Technical Select a gridview row by clicking
formats

Select a gridview row by clicking

SELECT ROW IN A GRID VIEW BY CLICKING

Protected Sub GridView_Labels_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView_Labels.RowCreated

If e.Row.RowType = DataControlRowType.DataRow Then

e.Row.Attributes.Add(“onclick”, Page.ClientScript.GetPostBackEventReference(sender, “Select$” & e.Row.RowIndex.ToString))

e.Row.Style(“cursor”) = “hand”

End If

End Sub

 
 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

12,873 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© All rights reserved to Cyberbrutus. 2012
credit

Switch to our mobile site