gridview选中变色实现方法,.net
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#37B4F5';this.style.cursor='pointer'"); e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=c");
用户评论