GirdView的光棒效果

 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");
            }
        }
posted @ 2011-05-16 09:35  ゞ追忆o0ゞ  阅读(366)  评论(0编辑  收藏  举报