title: ASP.NET MVC. How use DisplayNameFor in order to create a table heading and body?
body: <p>How get a property display name using <code>DisplayNameFor()</code>to build a table header. for instance: </p>
  
  <pre><code>   @model IEnumerable&lt;Item&gt;
     &lt;table class="table"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.DisplayNameFor(? =&gt; ?.prop1)&lt;/td&gt;
                  &lt;td&gt;@Html.DisplayNameFor(? =&gt; ?.prop2)&lt;/td&gt;
                  &lt;td&gt;@Html.DisplayNameFor(? =&gt; ?.prop3)&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              @foreach (Item item in Model) {
                  &lt;tr&gt;
                      &lt;td&gt;@Html.DisplayFor(i =&gt; item.prop1)&lt;/td&gt;
                      &lt;td&gt;@Html.DisplayFor(i =&gt; item.prop2)&lt;/td&gt;
                      &lt;td&gt;@Html.DisplayFor(i =&gt; item.prop3)&lt;/td&gt;
                  &lt;/tr&gt;
              }    
          &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>what should I write in the question marks?  </p>