Hi!
I am working on an Asp.net application with c# as the code behind. A newbie.
I have a datagrid, in which I am showing checkbox (bound to a column of my table).
My code is
The datatype of the 'Status' field in the database is bit. ( I am using Sql Server 2000). It works perfectly fine.Code:<asp:CheckBox id="chkActive" enabled= "false" AutoPostBack="True" Runat="server" checked='<%# DataBinder.Eval(Container.DataItem, "status") %>'> </asp:CheckBox>
But, due to some reason, when I change the datatype of the Status field to int, it doesn't work. How to implement checboxes in the grid, when the datatype is int.
Pls help.
Thanks.




Reply With Quote