sir, i'm using ASP.Net 2.0,
i'm using a gridview in a form and i want to create a check boxes dynamically in each row of my grid view so that i can select multiple values from that grid, i want to use those selected values for some manipulation in the same form.
Shubhib 0 Newbie Poster
Recommended Answers
Jump to Postu have to use row command event to achieve this functionality.
Jump to PostFirst add this code on the .aspx file to add checkboxes to GridView
<asp:TemplateField HeaderText="Delete" ShowHeader="False"> <ItemTemplate> <asp:CheckBox ID="chkDeleteRows" runat="server"/> </ItemTemplate> <FooterTemplate> <asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete"></asp:LinkButton> </FooterTemplate> <ItemStyle HorizontalAlign="Center" /> </asp:TemplateField>
Then locate
protected void gv_RowDeleting(object sender, GridViewDeleteEventArgs e) for your …
All 6 Replies
raj416 2 Newbie Poster
Shubhib 0 Newbie Poster
greeny_1984 14 Posting Whiz
binoj_daniel 14 Practically a Master Poster
Shubhib 0 Newbie Poster
hopel7758 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.