I need to bind the Checkbox within the gridview with Integer datafield of database.
Actually, when the field value is 1 the checkbox should be checked itself and when 2 it should be unchecked itself.
Code i have tried is as follows but they are not working properly.
<asp:CheckBox ID="chkstatus" runat="server" Checked='<%#
Bind("status") %>'
<asp:CheckBox ID="chkstatus"
runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "status") %>'