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:
- Checking if Browser Supports Cookies (ASP.NET)
- Clustered Index vs. Non-Clustered Index in SQL Server
- Fix for Visual Studio 2008 SP1 Design Mode Error - [text] could not be set on [property]
- Get Index Fragmentation Percentage for all Tables in SQL Server Database
- Silverlight Memory Leak DataGrid, DataForm, DataTemplate, etc...
- C# Free Component to Generate PDF - Convert HTML to PDF


Recent comments
1 day 1 hour ago
1 day 6 hours ago
1 week 1 day ago
1 week 1 day ago
1 week 2 days ago
1 week 5 days ago
2 weeks 1 day ago
2 weeks 1 day ago
2 weeks 1 day ago
2 weeks 1 day ago