`
maybe723
  • 浏览: 45007 次
  • 来自: ...
最近访客 更多访客>>
社区版块
存档分类
最新评论

Gridview中用checkbox来改变选种行的背景色

    博客分类:
  • .net
阅读更多

通过把checkbox加入到模板列

添加 checkbox的onclick事件:

onclick="if(checked){this.parentNode.parentNode.style.backgroundColor='red'}else{this.parentNode.parentNode.style.backgroundColor=''}"

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics