title: Grid.MVC giving errors in partial view form
body: <p>I am trying to use Grid.MVC to pull from my database into a partial view for another view.  I have the following in the Empty View I created in the EditorTemplates:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@{
      Layout = null;
  }
  
  @using GridMvc.Html
  @using Inventory.Entities
  
  @Html.Grid(Model).Columns(columns =&gt;
                      {
                          columns.Add().Encoded(false).Sanitized(false).SetWidth(30).RenderValueAs(o =&gt; Html.CheckBox("Checked", false));
                          columns.Add(c =&gt; c.ProdName);
                          columns.Add(c =&gt; c.ProdID, true);
                      })
  ​</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have a Controller and  for it that is as follows:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>using Inventory.Entities;
  using Inventory.Web.DataContext;
  
  namespace Inventory.Web.Controllers
  {
      public class ProductionController : Controller
      {
          private CommonDB db = new CommonDB();
                  
          // GET: Production
          public ActionResult Production(string prodGrid)
          {
          var ProdList = new List&lt;string&gt;();
  
              var ProdQry = from p in db.Productions
                            select p.ProdName;
              ProdList.AddRange(ProdQry.Distinct());
  
              ViewBag.prodGrid = new SelectList(ProdList);
  
              return View(prodGrid);
          }
      }
  }​</code></pre>
  </div>
  </div>
  </p>
  
  <p>and the Model is as follows:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel.DataAnnotations;
  using System.Linq;
  
  
  namespace Inventory.Entities
      {
      public class Production
          {
          [Key]
          public int ProdID { get; set; }
          [Required]
          public string ProdName { get; set; }
  
          }
      }​</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have used NuGet package manager to add Grid.MVC to the solution, and have added the following to the _Layout.cshtml after the @Scripts.Render("~/bundles/modernizer"):</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"&gt; &lt;/script&gt;
      &lt;link href="@Url.Content("~/Content/Gridmvc.css")" rel="stylesheet" type="text/css" /&gt;
      &lt;script src="@Url.Content("~/Scripts/gridmvc.min.js")" type="text/javascript"&gt; &lt;/script&gt;​</code></pre>
  </div>
  </div>
  </p>
  
  <p>I checked and there is a reference to GridMVC in the references, along with all the other files that are needed by it.  Unfortunately I am having the following errors thrown:
  Error   1   The type or namespace name 'GridMvc' could not be found (are you missing a using directive or an assembly reference?)</p>
  
  <p>Error   2   'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Grid' and no extension method 'Grid' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)</p>
  
  <p>I have checked the documentation, and various websites trying to figure out what is wrong, but I am stumped.  Does anyone see where I might have done something wrong with this?  This is now the holdup with my entire project.</p>
  
  <p>Thank you in advance,</p>
  
  <p>Michael Mastro</p>