Detailview with Checkbox
Hi Guys
I am Created GridView with one of the Column having Checkbox.Using Template Field I created Chockbox for that particular column.see the code below
<asp:TemplateField HeaderText="Status" SortExpression="Status">
<ItemTemplate>
<asp:CheckBox ID="Ch1" runat="server" Enabled="false" Checked="false" />
</ItemTemplate>
</asp:TemplateField>
It is displayed in the GridView.Now I created one Detailview for performing Edit operation.Here also I created Checkbox Using </asp:TemplateField> but I don't know how to perform the Update for Checkbox field,ie,I don't know how to find the Checkbox is checked or Unchecked and how to get the current value and store in the database..Please give any Sample code...
|