Why is the checkbox not checked with this code?
<td><%=Html.CheckBox("ItemIsActive", item.ItemIsActive)%></td>
Item.ItemIsActive is of type boolean and set to true?
When i do this, it shows “true” in the view
<td><%=item.ItemIsActive%></td>
I had this same issue until I changed my boolean field to a non-nullable field. Make sure your Item.IsActive field is declared like:
instead of
If you are using Linq2Sql make sure ItemIsActive is not nullable in your table.