Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,

I have a GridView and have a Checkbox in the Header Template.
Also have CheckBoxes in the Item Template.I want to select(checked) all Checkboxes when the Header Checkbox selected(checked) and deselect(unchecked) all Checkboxes,when the Header Checkbox deselected(unchecked).

Please help me. Its urgent.
Posted

1 solution

I just checked and no-one thinks it is urgent but you. Perhaps you need to not take on tasks you have no idea how to do, relying on random strangers to do your job is not a business plan.

You do this with very basic javascript. The trick is to write your own ids into the checkboxes, or to use the ClientID property to get the ones the system gives them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900