title: The model item passed into the dictionary is of type 'requires a model item of type 'System.Collections.Generic.IEnumerable`
body: <p>I have created a web application in mvc3 and created two partial views
  one having controls like dropdownlist.
  second having webgrid which shows data from database.</p>
  
  <pre><code>partialview1.cshtml
  @model Mapping.Models.SecurityIdentifierMapping
  
  @using (Html.BeginForm("Mapping", "Home"))
  {
      @Html.DropDownList("SecurityID", Model.PricingSecurityID, "-- Select SecurityID --")
      &lt;br /&gt;    
      @Html.DropDownList("CUSIPID", Model.PricingSecurityID, "-- Select CUSIPID --")
      &lt;br /&gt;
      &lt;button type="submit"&gt;Map&lt;/button&gt;
  }
  
  partialview2.cshtml
  @model IEnumerable&lt;Mapping.Models.SecurityIdentifierMapping&gt;
  
  @{
      ViewBag.Title = "Mapping";
      WebGrid grid = null;
      if (Model.Count() &gt; 0 ){
      grid = new WebGrid(source: Model,
                              defaultSort: "Id",
                              canPage: true,
                              canSort: true,
                              rowsPerPage:20);
      }
  }
  
  
  &lt;h2&gt;Mapping&lt;/h2&gt;
  
  
  @if (grid != null)
  {
  @grid.GetHtml(
                  tableStyle: "grid",
                  headerStyle: "head",
                  alternatingRowStyle: "alt",
                  columns: grid.Columns(
                                              grid.Column("", header: null, format: @&lt;text&gt;@Html.ActionLink("Edit", "Edit", new { id = (int)item.id })  @Html.ActionLink("Delete", "Delete", new { id = (int)item.id })&lt;/text&gt;),
                                              grid.Column("PricingSecurityID"),
                                              grid.Column("CUSIP")
                                            )
  
                  )
  }
  &lt;br /&gt;
  &lt;p&gt;
      @Html.ActionLink("Back", "Index")
  &lt;/p&gt;
  
  in index.cshtml
  
  
  &lt;div&gt;
  @Html.Partial("_ControlsPartial",)
  &lt;/div&gt;
  
  &lt;div&gt;
  @Html.Partial("_WebGridPartial")
  &lt;/div&gt;
  
  HomeController.cs
    public ActionResult Index()
          {
              SecurityIdentifierMapping objModel = new SecurityIdentifierMapping();
              objModel.PricingSecurityID = objRepository.GetPricingSecurityID();
              objModel.CUSIP = objRepository.GetCUSIP();
              return View(objModel);
  
          }
  </code></pre>
  
  <p>How can i show webgrid and populate dropdown with same Index()??</p>
  
  <p>getting error :(
  what should be 2nd parameter inside @Html.Partial() so that both grid and control works fine on same page.?</p>