Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound Dim gv As GridViewRow For Each gv In GridView1.Rows If gv.RowType = DataControlRowType.DataRow Then gv.Attributes.Add("onmouseover", "this.style.background='#3399FF';this.style.cursor='pointer';") gv.Attributes.Add("onmouseout", "this.style.background='';") End If Next End Sub