title: Convert to list a object with anonymous type
body: <p>I need convert to list a object with anonymous type because when i databind the gridview i get </p>
  
  <p>"The data source does not support server-side data paging"</p>
  
  <p>or How i can solve this?</p>
  
  <pre><code>object o =  HttpRuntime.Cache[key];
  
  if(o is ICollection)
  {
      //Sort Object
      o = ((IQueryable)this.DataSource).AsQueryable().OrderBy(SortExpresion);
  
      DataSource = o;
  
      DataBind();
  
  }
  </code></pre>
  
  <p>data returned from cache are ok, the problem is that i extended the gridview control and the data type of datasource is always different, and i need sort this anonymous data stored in cache and use in the gridview</p>