GirdView的光棒效果
时间:2011-05-16 来源:ゞ追忆o0ゞ
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
EnableViewState = false;
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor='#CCCCFF'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor");
}
}
{
EnableViewState = false;
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor='#CCCCFF'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor");
}
}
相关阅读 更多 +