zoukankan      html  css  js  c++  java
  • CRM选择行变色

       if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)

       {
        //添加自定义属性,当鼠标移过来时设置该行的背景色为"6699ff",并保存原背景色
        e.Item.Attributes.Add("onmouseover","currentcolor=this.style.backgroundColor;this.style.backgroundColor='#6699ff'");
        //添加自定义属性,当鼠标移走时还原该行的背景色
        e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=currentcolor");

        //e.Item.Attributes.Add("onclick","window.open('default.aspx?id=" + hisvalues + ",null,'width=700,height=400');");//,location=no,scrollbars=no, resizable=no
        e.Item.Attributes.Add("onclick","SetValues(this)");//将datagrid中的当前行的数据放到text中

       }

  • 相关阅读:
    C#带日期型默认值参数的函数
    mvc调用webapi上传图片或文件
    mysql增删改查存储过程
    sql 分页存储过程
    sql 出库存储过程
    Ternura
    留言板
    友链
    .net 死锁
    C#微信小程序搜索框
  • 原文地址:https://www.cnblogs.com/hhq80/p/661993.html
Copyright © 2011-2022 走看看