title: C# show data of ExpandoObject - Cannot convert lambda expression to type '…' because it is not a delegate
body: <p>I have this method:</p>
  
  <pre><code>    public ActionResult dataGrid()
      {
                  List&lt;ExpandoObject&gt; list = new List&lt;ExpandoObject&gt;();
  
                  using (OdbcCommand DbCommand = repODBC.dbConnection.CreateCommand())
                  {
                      DbCommand.CommandText = "Select * From MyTable";
                      OdbcDataReader reader = DbCommand.ExecuteReader();
  
                      while (reader.Read())
                      {
                          dynamic obj = new ExpandoObject();
                          obj.name="Peter";
                          obj.num=123;
                          obj.id=1;
                          list.Add(obj);
                      }
  
                      return View(list);
                  }
      }
  </code></pre>
  
  <p>I try to access data this way. I use Grid.Mvc... :</p>
  
  <pre><code>@Html.Grid((IEnumerable&lt;System.Dynamic.ExpandoObject&gt;)Model).Columns(columns =&gt;
  {
      columns.Add(m =&gt; m.id).Titled("ID");
      columns.Add(m =&gt; m.name).Titled("Name");
      columns.Add(m =&gt; m.num).Titled("OS").Filterable(true);
  })
  </code></pre>
  
  <p>but i get this error:
  <strong>Cannot convert lambda expression to type 'GridMvc.Columns.IGridColumn' because it is not a delegate</strong></p>
  
  <p>How can I add columns to grid to show data of ExpandoObject?</p>