时间:2021-07-01 10:21:17 帮助过:8人阅读
- <br>protected void gvSuperAdminSeeInfo_RowDataBound(object sender, GridViewRowEventArgs e) <br>{ <br>if (e.Row.RowType != DataControlRowType.DataRow)//判断是否是数据行 <br>{ <br>return; <br>} <br>e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='#ffffcf'"); <br>if (e.Row.RowIndex % 2 == 0) <br>{ <br>e.Row.CssClass = "gvSuperAdminSeeInfoORow"; <br>e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#fff'"); <br>} <br>else <br>{ <br>e.Row.CssClass = "gvSuperAdminSeeInfoJRow"; <br>e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#f5f5f5'"); <br>} <br>} <br>