title: Mvc Ienumerable in view for webgrid data
body: <pre><code>@model MedicalVariance.Models.ViewModels.IndividualProfile
      @Html.ListBox("AdministrationErrorSelected", Model.AdministrationErrorListBox, new { @class = "chzn-select" })
  </code></pre>
  
  <p>It look great and works just fine however! But I want to make an IEnumerable because I wanted to use a webgrid.</p>
  
  <pre><code>@model IEnumerable&lt;MedicalVariance.Models.ViewModels.IndividualProfile&gt;
  @Html.ListBox("AdministrationErrorSelected", foreach(var model in Model)model.AdministrationErrorListBox, new { @class = "chzn-select" })
  
  
  @{
    var grid = new WebGrid(source:Model, canPage: true, rowsPerPage: 5,fieldNamePrefix:"details");
  .... wouldnt work if the Model was not IEnumerable...
  }
  </code></pre>
  
  <p>Any better ways? I dont like using foreach because it seems verbose.</p>