文件名称:gridview选中变色实现方法,.net
文件大小:309B
文件格式:TXT
更新时间:2015-03-30 06:32:57
gridview 选中变色
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"); }