hi..
You can't use an IQueryable object to data
bind to a GridView and still use Paging and Sorting. You must return a
List to the GridView using the ToList() method.
See this DevToolShed Article for more information:
http://www.devtoolshed.com/content/gridview-objectdatasource-linq-paging-and-sorting