淡绿色是鼠标经过时留下的....鼠标离开后有时才改变行原有的颜色,有时不会.....
RowDataBound事件:
if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#e5f6cf'"); e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
}