e.Row指向了当前正在被创建的行。e.Row.Attributes.Add("onmouseover","c=this.style.backgroundColor;this.style.backgroundColor='#00ffee';");
这句用来设置mouseover的时候,该行背景色变为#00ffeee.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
这句用来设置在mouseout的时候,恢复该行的背景色
这句用来设置mouseover的时候,该行背景色变为#00ffeee.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
这句用来设置在mouseout的时候,恢复该行的背景色
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货