I'm new to this area of programming (ASP.NET VB) and i'm wondering if anyone has a kick start for me so that I can get things moving on my end which I would greatly appreciate! I'm currently using code to select an entire row (PatientName & Room ) in a Gridview without a "select" button (Below). I would then like to pass these from the row to the next page. The receiving page would have the two in labels. This is where i'm lost.
I know there are examples out there but i can not find an example that fits my case unless someone can point me in the right direction. Thank you
Private Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated
'Allows you to "select"/Highlight a row without a select button
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.Attributes("onmouseover") = "this.style.cursor='pointer';this.style.backgroundColor = '#87CEFF';"
e.Row.Attributes("onmouseout") = "this.style.textDecoration='none';this.style.backgroundColor = '#FFFFFF';"
e.Row.ToolTip = "Click to select row"
e.Row.Attributes("onclick") = Me.Page.ClientScript.GetPostBackClientHyperlink(Me.GridView1, "Select$" & e.Row.RowIndex)
End If
End Sub