A question about datasource objects in ASP.net

When using DataSources in ASP.net applications, paging and sorting along with GridView only works out of the box when using DataSet, DataTable, DataViews if you are using anything else you need to implement methods that perform paging as well as partial data retrieval from the datasource. I dont know many design nowadays that pass around DataSets accross layers. I am a big POCO fan and I like to keep things simple specially when working with DataContracts in WCF.

Am I missing something or is it too much to expect paging and sorting working out of the box or is it guys at MS dont think its important??? Is the DataPager control the answer??

Also,I would really appreciate if someone can give me a fully functional [gridview- object data source - Paging & sorting] tutorial/link. The ones I saw online made me feel that you need to hack your way in order to make it work.


You may have already come across them, but I've found Scott Mitchell's data access tutorials very helpful in the past. Tutorials #24-27 cover paging and sorting, and he uses the ObjectDataSource.

Need Your Help

Scope variables in spring/mybatis maps

java spring mybatis

I have a conversationScope.myVar="myValue" variable;

is it possible to set unlimited time for a cookie to a session variable?

php session cookies session-cookies

How do I set unlimited time to a cookie for a session? I have tried the following below but I still get undefined index notices on my sessions after a day:

Single strongly Typed Partial View for two similar classes of different types

asp.net-mvc partial-views html-helper strongly-typed-view

I have a Register Primary View which shows two different types of Addresses 1. Home Address 2. Mailing Address

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.