I am using pagedlist to display list which has nullable bool for status.Below is the code
@Html.CheckBoxFor(modelItem => item.Status.HasValue, new { @onclick = "UpdateStatus(" + item.Id + ",this)" })
I am passing status value as bool but still all the checkboxes are checked by default even when the status is false. Any suggestions?