M
MasterChief
I am trying to get it so when I go over a row in a gridview it will
highlight the row. I have looked at some examples but can't get it to
work.
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal
e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles
GridView1.RowDataBound
If (e.Row.RowType = DataControlRowType.DataRow) Then
e.Row.Attributes.Add("onmouseover",
"this.style.backgroundcolor='blue'")
e.Row.Attributes.Add("onmouseout",
"this.style.backgroundcolor='white'")
End If
End Sub
highlight the row. I have looked at some examples but can't get it to
work.
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal
e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles
GridView1.RowDataBound
If (e.Row.RowType = DataControlRowType.DataRow) Then
e.Row.Attributes.Add("onmouseover",
"this.style.backgroundcolor='blue'")
e.Row.Attributes.Add("onmouseout",
"this.style.backgroundcolor='white'")
End If
End Sub