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.

Answers


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

Arbitrary sleeping in threading's wait with timeout

python python-2.7 sleep python-multithreading

Before I start describing my question, it might worth mentioning that I'm using Python 2.7. I haven't checked, but this might be irrelevant for Python 3.x.

Sharing data between files in a Firefox extension

javascript firefox google-chrome-extension firefox-addon firefox-addon-sdk

I'm moving an extension from Chrome to Firefox and I'm using the Add-on SDK. To access functions declared in the background file from a panel or popup I can use chrome.extension.getBackgroundPage in

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.