Pagination
GridView ObjectDataSource LINQ Paging and Sorting
Submitted by Ben Hodson on Thu, 03/13/2008 - 17:44
If you've attempted to create your own Data Access Layer for LINQ and want to use the built-in data binding for .NET controls like a GridView, you know the nightmare of trying to get these controls to work together with LINQ new IQueryable interface. After much pain and suffering, I was able to cobble together little tidbits from various posts to create a solid object that can be used as a "codeless" ObjectDataSource for any GridView AND support sorting, paging, and filtering just like if you were to databind to a LINQ to SQL object (like EVERY tutorial shows you how to do).
Popular Articles
Last viewed:
- Fixing Relative Paths in C# ASP.NET When Using Url Rewriting
- Get the list of ODBC data source names programatically using C#
- Clustered Index vs. Non-Clustered Index in SQL Server
- Crystal Reports and ASP.NET
- Contact Us
- Windows Server 2003 Configure RRAS (Routing and Remote Access Service) Site to Site VPN

Recent comments
13 hours 8 min ago
1 day 12 hours ago
3 days 14 hours ago
4 days 3 hours ago
4 days 14 hours ago
4 days 20 hours ago
4 days 23 hours ago
1 week 20 hours ago
1 week 1 day ago
1 week 4 days ago