I have a boolean property IsActive. In the view is a list of objects with their properties (including IsActive). But in the list the IsActive is a non-editable checkbox since it
You can try this:
@if (item.IsActive) { @string.Format("Active"); } else { @string.Format("Inactive"); }