医药CRM系统开发

自已做医药CRM系统有四年了,终于可以算个产品了,努力市场化,今年重种将医药营销的理念加入CRM

导航

CRM选择行变色

Posted on 2007-03-02 17:33  hhq80  阅读(187)  评论(0编辑  收藏  举报

   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中

   }