Click here to Skip to main content
15,887,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
how to add a checkbox in a grid view for group selection
that is when i click on a headertext check box it must select all the rows in the grid view
PLZ HELP ME
thanks for ur replay
Posted
Updated 25-Mar-13 23:00pm
v2

You can do it using Template fields.

Refer: MS ASP.NET: Adding a GridView Column of Checkboxes (C#)[^]
 
Share this answer
 
ASP.NET
<asp:gridview id="Grid_View1" runat="server">
<columns>
                                <templatefield headertext="ID" visible="false">
                                    <itemtemplate><asp:checkbox id="Check_You_Box" runat="Server" checked="true"></itemtemplate></templatefield>



</columns></asp:GridView>




This is only i can provide in return of the information provided by you :)

Regards
Daman
SkypeId: nik_boyz
 
Share this answer
 
v3
Comments
manjujasmine 26-Mar-13 4:44am    
Thnks for ur rply
now i want chekboxlist and multi selection
ASP.NET
<asp:gridview id="Grid_View1" runat="server" xmlns:asp="#unknown">
<columns>
                                <templatefield headertext="ID" visible="false">
                                    <itemtemplate><asp:checkboxlist id="Check_You_Box" runat="Server" checked="true"><asp:listitem value="00">Select</asp:listitem><asp:listitem value="01">Option1</asp:listitem></asp:checkboxlist></itemtemplate></templatefield>
 

 
</columns></asp:gridview>
 
Share this answer
 
v2

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