GridView 鼠标悬浮、移开变色
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"); }}