Paging
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:
- Getting Started with Microsoft Chart Controls for ASP.NET 3.5
- GridView ObjectDataSource LINQ Paging and Sorting
- Data Access Layer using SqlDataReader and C#
- Disable Button on Submit (Prevent multiple submits)
- Fixing Relative Paths in C# ASP.NET When Using Url Rewriting
- Clustered Index vs. Non-Clustered Index in SQL Server

Recent comments
14 hours 23 min ago
1 day 14 hours ago
3 days 15 hours ago
4 days 4 hours ago
4 days 15 hours ago
4 days 21 hours ago
5 days 1 hour ago
1 week 21 hours ago
1 week 1 day ago
1 week 4 days ago