GridView开发积累

来源:互联网 发布:mac pro 2017 评测 编辑:程序博客网 时间:2024/05/08 16:50

 1.简单的GridView光棒效果

        GridView1_RowDataBound事件

        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Attributes.Add("onmouseover", "currentcolor = this.style.backgroundColor;this.style.backgroundColor='#cccccc'");
            e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor = currentcolor");
        }

 

 

 

  第一次发,未完待续...

原创粉丝点击