//变颜色
        protected void GVDepartmentDialog_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            //判断是否是数据行
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor; this.style.backgroundColor='#00A9FF'");
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
            }
        }

相关文章:

  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-11-28
  • 2021-12-29
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
相关资源
相似解决方案