title: How to model bind to a List<ViewModel>?
body: <p>I'm trying to accomplish something like this.  I feel like it's possible, and if not probably an oversight in the MVC framework?</p>
  
  <p>View:</p>
  
  <pre><code>&lt;%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage&lt;List&lt;MyViewModel&gt;&gt;" %&gt;
  ...
  &lt;% foreach (MyViewModel vm in Model) {
      Html.RenderPartial("MyViewModelPartial", vm);
  } %&gt;
  </code></pre>
  
  <p>The partial view being an editable form, strongly typed to a single MyViewModel, and use the DataAnnotations on the MyViewModel class to validate</p>
  
  <p>Controller:</p>
  
  <pre><code>public ActionResult FooController(List&lt;MyViewModel&gt; vml)
  { 
     ...
  }
  </code></pre>
  
  <p>Is this possible?  This seems like the most logical way to build grid/table structures in MVC(with each partial view being a table row) but I can't seem to get it to work and I end up using FormCollection in my controller to loop through the whole dang form, and it's just messy.</p>