1. 首页
  2. 编程语言
  3. C#
  4. gridview选中变色实现方法,.net

gridview选中变色实现方法,.net

上传者: 2019-03-17 10:19:21上传 TXT文件 309B 热度 31次
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");
用户评论