62,269
社区成员
发帖
与我相关
我的任务
分享
//如果是绑定数据行
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", "c=this.style.backgroundColor;this.style.backgroundColor='#00A9FF'");
e.Row.Attributes.Add("onclick", "this.style.backgroundColor=c");
}