I would go so far as to say, that you can only bind a boolean to an
asp:CheckBoxField
.
However you can use a
asp:TemplateField
and convert the value in the markup to pass it to an
asp:CheckBox
you could also do that in the DataBound event.
Make sure to catch the event before adding and editing a row, so you can correctly read the value from your checkbox and set the right datafield.
<asp:templatefield>
<itemtemplate>
<asp:checkbox id="chkOnlineCheck" runat="server" checked="<%# Eval("ONLINE_CHECK").ToString() == "0" ? false : true) %>" />' />
</itemtemplate>
</asp:templatefield>
Regards,
Gerald