Using the following two methods in my view and edit views, They run off the model and automatically generate a list of the fields with labels, to display/edit.

  @Html.EditorForModel()

  @Html.DisplayForModel()

The problem is that they display every field.. Including the ID field, which is bad when it comes to editing as it should not be changed.

So, How do I hide certain fields in the model. (without removing the fields from the model.)

Edit
Report