title: WebGrid constructor parameters are wrong
body: <p>I cannot understand why do i have an error on my constructor line.
  I try to create a class that containes a WebGrid and a Custom set of filters
  here is the code</p>
  
  <pre><code>    public class FilterableWebGrid&lt;T&gt; : System.Web.Helpers.WebGrid
      {
          public System.Web.Helpers.WebGrid Grid { get; set; }
          public IEnumerable&lt;AbstractSearch&gt; Filters { get; set; }
          private IEnumerable&lt;T&gt; m_GridData;
  
          public FilterableWebGrid(T Model)
          {
              Grid = new System.Web.Helpers.WebGrid(source: m_GridData);
          }
  
      }
  </code></pre>
  
  <p>and on this line <code>Grid = new System.Web.Helpers.WebGrid(source: m_GridData);</code>
  I get an error:</p>
  
  <blockquote>
    <p>The best overloaded method match for
    'System.Web.Helpers.WebGrid.WebGrid(System.Collections.Generic.IEnumerable,
    System.Collections.Generic.IEnumerable, string, int, bool,
    bool, string, string, string, string, string, string, string)' has
    some invalid arguments</p>
  </blockquote>
  
  <p>I am passing an <code>IEnumerable</code> to the constructor of the WebGrid so why do I get this error? al other properties have default values...</p>
  
  <p>Any help would be appreciated.. </p>
  
  <p><strong>EDIT 1:</strong>
  So after more digging found this specific error:</p>
  
  <blockquote>
    <p>cannot convert from 'System.Collections.Generic.IEnumerable' to
    'System.Collections.Generic.IEnumerable</p>
  </blockquote>
  
  <p>that i got after passing all parameters:</p>
  
  <pre><code> Grid = new System.Web.Helpers.WebGrid(
              source: m_GridData,
              columnNames: null,
              defaultSort: null,
              rowsPerPage: 10,
              canPage: true,
              canSort: true,
              ajaxUpdateContainerId: null,
              ajaxUpdateCallback: null,
              fieldNamePrefix: null,
              pageFieldName: null,
              selectionFieldName: null,
              sortFieldName: null,
              sortDirectionFieldName: null);
  </code></pre>
  
  <p>and the error is for line <code>source: m_GridData</code></p>
  
  <p>now why is it that <code>IEnumerable&lt;T&gt;</code> cannot be converted to <code>IEnumerable&lt;dynamic&gt;</code></p>