Need a simple CRM and Project Management system?
Check out JobNimbus - CRM for Contractors and Service Professionals.
Check out JobNimbus - CRM for Contractors and Service Professionals.
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:
- Find a control in a TemplateField programmatically
- C# Escape XML String
- Access Master Page properties from the content page
- Get the list of ODBC data source names programatically using C#
- How to back up windows with Bacula
- MySQL Administrator - Can't see with Remote Desktop session connecting to Multiple Monitor Workstation

Recent comments
9 hours 19 min ago
1 day 12 hours ago
4 weeks 4 days ago
4 weeks 4 days ago
5 weeks 4 days ago
5 weeks 4 days ago
5 weeks 5 days ago
8 weeks 4 days ago
9 weeks 6 days ago
11 weeks 4 days ago