Hi Mahesh,
How to insert checkbox field in the gridview?
Regards,
Geetha
Hi Mahesh,
How to insert checkbox field in the gridview?
Regards,
Geetha
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Blocked AccountRank #403 · 6.2K reputationPosted Oct 21, 2008, 11:14 PM EDT
Hi,
you can put checkbox field in the gridview by using template field as follows:
<
asp:TemplateField HeaderText="Active"> <ItemStyle Width="25px" HorizontalAlign="Center" VerticalAlign="Middle" /> <ItemTemplate><asp:CheckBox ID="CheckBoxActive" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem,"Active") %>' />
ItemTemplate> asp:TemplateField>Happy Coding!!
Geetha Seetharamaiah13 reputationPosted Oct 22, 2008, 12:49 AM EDT