简体   繁体   English

如何选中和取消选中复选框,在ASP.NET的GridView中

[英]How to Check & unchecked a check box In side a GridView of a ASP.NET

I have a grid view. 我有一个网格视图。 On the HeaderTemplate I want to add a check-box.(Text of this Check Box is Check All) 我要在HeaderTemplate上添加一个复选框。(此复选框的文本为Check All)。

.Condition: 。条件:

When I want to checked the check box, Then all the check box below to this are checked (In side the grid view) ->The check box below are automatically generated inside the Grid View. 当我想选中复选框时,然后选中下面的所有复选框(在网格视图的旁边)->下面的复选框是在网格视图内部自动生成的。

At that moment the Check Box text should change to Unchecked & the check box are also unchecked inside the grid view. 那时,“复选框”文本应更改为“未选中”,并且在网格视图中也未选中该复选框。 (Like we shown in the Yahoo Mail or HotMail etc) (就像我们在Yahoo Mail或HotMail等中显示的一样)

Check All (Select All) CheckBox in GridView jQuery Script GridView jQuery脚本中的全部选中(全选)复选框

Check below Link: 检查以下链接:

http://aspsnippets.com/Articles/Check-Uncheck-all-CheckBoxes-in-ASPNet-GridView-using-jQuery.aspx http://aspsnippets.com/Articles/Check-Uncheck-all-CheckBoxes-in-ASPNet-GridView-using-jQuery.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM