I have placed a standard ASP:Checkbox control into a custom EditForm of a RadGrid. I'm trying to use <%# Bind("IsActive") #> to bind the control to a 'bit' field in a SQL Server 2005 database.
<asp:CheckBox ID="IsActive" runat="server" Checked=<%# Bind("IsActive") %>
Unfortunately when I attempt to insert a new record into the grid I get an "InvalidCast" exception.
When I attempt to update a record in the grid, no exceptions occur, however the underlying database record isn't updated.
Any ideas?
<asp:CheckBox ID="IsActive" runat="server" Checked=<%# Bind("IsActive") %>
Unfortunately when I attempt to insert a new record into the grid I get an "InvalidCast" exception.
When I attempt to update a record in the grid, no exceptions occur, however the underlying database record isn't updated.
Any ideas?