PRotected void gvSu
PErAdminSe
einfo_RowDataBound(object sender, GridViewRowEvent
args e)
{
if (e.Row.RowType != DataControlRowType.DataRow)//判断
是否是数据行
{
return;
}
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='
#fff
fcf'");
if (e.Row.RowIndex % 2
== 0)
{
e.Row.CssClass = "gvSuperAdminSeeInfoORow";
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#fff'");
}
else
{
e.Row.CssClass = "gvSuperAdminSeeInfoJRow";
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#f5f5f5'");
}
}