title: Why doesnt EditorFor render HTML?
body: <p>I have the following ViewModel:</p>
  
  <pre><code>public class ShowMatrixQuestionViewModel : ShowQuestionViewModel
  {
  
  public Dictionary&lt;MatrixRows, List&lt;MatrixColumns&gt;&gt; columnrow;
  public List&lt;MatrixColumns&gt; columns;
  public List&lt;MatrixRows&gt; rows;
  
  public ShowMatrixQuestionViewModel()
  {
      columns = new List&lt;MatrixColumns&gt;();
      rows = new List&lt;MatrixRows&gt;();
      columnrow = new Dictionary&lt;MatrixRows, List&lt;MatrixColumns&gt;&gt;();
  }
  }
  
  public class MatrixColumns
  {
      public int Column_ID { get; set; }
      public int Column_Number { get; set; }
      public String Column_Description { get; set; }
      public Boolean IsAnswer { get; set; }
  }
  
  public class MatrixRows
  {
      public int Row_Id { get; set; }
      public String Row_Number { get; set; }
      public String Row_Description { get; set; }
  }
  </code></pre>
  
  <p>When i fill up my model and try to show the MatrixRows with a DisplayTemplate it doesnt show anything. The name of my DisplayTemplate is MatrixRows.cshtml and it is placed inside Views/Shared/DisplayTemplates</p>
  
  <p>This is the code i use to display a MatrixRow:</p>
  
  <pre><code>@model TestInheritance.Models.ShowMatrixQuestionViewModel
  
  @using (Html.BeginForm())
  {
      &lt;div id="edit"&gt;
      &lt;h2&gt;Columns&lt;/h2&gt;
      @foreach (var column in Model.columns)
      {
          &lt;p&gt;@column.GetType().Name&lt;/p&gt;
          Html.RenderPartial("EditMatrixColumn", column);
      }
      &lt;h2&gt;Rows&lt;/h2&gt;
      @foreach (var rows in Model.rows)
      {
        &lt;p&gt;@rows.GetType()&lt;/p&gt;
        Html.DisplayFor(x =&gt; rows);
        //Html.RenderPartial("EditMatrixRow", rows);
      }
      &lt;/div&gt;
  
      &lt;input type="submit" value="Finished" /&gt;
  }
  </code></pre>
  
  <p>It works fine when i used RenderPartial... What am i doing wrong?</p>
  
  <p>The code for the DisplayTemplate:</p>
  
  <pre><code>@model TestInheritance.Models.MatrixRows
  @using TestInheritance.Helpers
  
  &lt;div class="editrow"&gt;
  @using (Html.BeginCollectionItem("rows")) 
  {
      &lt;span&gt;
      Nummer:
      @Html.EditorFor(cn =&gt; Model.Row_Number)
      &lt;/span&gt;
      &lt;br /&gt;
      &lt;span&gt;
      Beskrivelse:
      @Html.EditorFor(bs =&gt; Model.Row_Description)
      &lt;/span&gt;
  }
  &lt;/div&gt;
  </code></pre>