title: Using WebGrid in ASP.NET Core
body: <p>I am using <code>System.Web.Helpers.WebGrid</code> control in ASP.NET Core application,
  I am getting the below error while rendering the grid</p>
  
  <pre><code>An unhandled exception occurred while processing the request.
  
  ArgumentNullException: Value cannot be null.
   Parameter name: httpContext
  
  System.Web.HttpContextWrapper..ctor(HttpContext httpContext)
  </code></pre>
  
  <p>at line </p>
  
  <pre><code>System.Web.Helpers.WebGrid objWebGrid = new System.Web.Helpers.WebGrid(Model.MeetingsObj);
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>public class Meeting
      {
  
          public int MeetingId { get; set; }
          public string MeetingName { get; set; }
          public string Format { get; set; }
          public string Location { get; set; }
      }
  
      public class MeetingVM
      {
          public Meeting MeetingObj { get; set; }
          public List&lt;Meeting&gt; MeetingsObj { get; set; }
          public Boolean ShowGridHeader { get; set; }
      }
  </code></pre>
  
  <p>Can anyone provide solution for the above error?</p>