title: how to bind result of GroupBy syntax in Linq to entities to grid view
body: <p>i have a table in my database called "Module_Menus_Menu" and the tables data are like this :</p>
  
  <pre><code>MenuID  ParentID    Name        URL
  //===================================================
     1       0        Home        /Home
     2       0        Products    /Products
     3       0        Templates   /Templates
     4       2        Prod1       /Products/Cat1
     5       2        Prod2       /Products/Cat2
     6       3        Free        /Templates/Free
     7       3        Premium     /Templates/Premium
  </code></pre>
  
  <p>as you see this is my menu table and home, products,templates are first level menu and Prod1 is under products and prod2 too,
  now i want to show them in grid view(in admin area) just for listing them
  and i want to use GroupBy syntax to get the data and bind grid view like this :</p>
  
  <pre><code>Home
  
  Products
  Prod1
  Prod2
  
  Templates
  Free
  Premium
  </code></pre>
  
  <p>i searched and found a query :</p>
  
  <pre><code>var items = (from m in context.Module_Menus_Menu group m by m.ParentID into g select new
                      {
                         ParentID = g.Key,
                         Name = g.Select(n =&gt; n.Name),
                         MenuID = g.Select(i =&gt; i.MenuID),
                         URL = g.Select(u =&gt; u.URL)
                      }).ToList();
  </code></pre>
  
  <p>now when i bind it to grid view :</p>
  
  <pre><code>grdItems.DataSource = items;
  grdItems.DataBind();
  </code></pre>
  
  <p>and result :</p>
  
  <pre><code>Name
  System.Collections.Generic.List`1[System.String]    
  System.Collections.Generic.List`1[System.String]    
  System.Collections.Generic.List`1[System.String]
  </code></pre>
  
  <p>please help me</p>