62,046
社区成员
发帖
与我相关
我的任务
分享
if (e.Row.RowType == DataControlRowType.DataRow)//判断是否为数据绑定列
{
e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#CCDCE9'");//添加鼠标移动样式
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c;");//添加鼠标移动样式
}