protected void SbzGridView_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //鼠标悬浮变色 e.Row.Attributes.Add("onmouseover", "color = this.style.backgroundColor;this.style.backgroundColor='#fc0'"); e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=color"); }}