I am trying to check the box if the value is 1 or 0 mainly in my database. a field called Active (bit, not null), and I can pass the value to gridview .., but now I'm trying to check it if the bit is 1 or not checked, if the bit is 0, but it doesn't work .. it just shows unchecked, but the bit is 1.
<ItemTemplate>
<asp:CheckBox ID="ItemCheck" runat="server"
Enabled='<%# (DataBinder.Eval(Container.DataItem, "Active")) %>' />
</ItemTemplate>
Any help would be greatly appreciated
source
share