I want to select some specific columns from my grid using checkbox.
So, can anyone give me suggestion that how can i do that?.
Any help would be appreciated!
-
see stackoverflow.com/help/how-to-ask before asking questionyash– yash2016-08-11 05:36:48 +00:00Commented Aug 11, 2016 at 5:36
-
2Already asked stackoverflow.com/questions/1340901/… google it properly and please next time provide some codeDarshan Dave– Darshan Dave2016-08-11 06:41:34 +00:00Commented Aug 11, 2016 at 6:41
Add a comment
|
2 Answers
You can simply use the templatefield inside the gridview for placing controls .
<asp:GridView ID="familygrid" runat="server" AutoGenerateColumns="False" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox ID="check_id" runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Comments
Refer this link u will get some idea to implement Checkbox in aspgridview
http://www.aspsnippets.com/Articles/GridView-with-CheckBox-Get-Selected-Rows-in-ASPNet.aspx