Using the DomainDataSource to page through data

We can easily implement paging behavior using the DomainDataSource. Paging is important for two reasons: we typically don't want to have a list of hundreds of detail lines on one screen because this severely limits the user experience and slows down our application. Besides that, paging makes sure that we can fetch parts of data from our server instead of fetching everything at once. This makes sure that bandwidth use is limited and again makes working with the application faster and more user friendly. This recipe will show you how to do it.

Getting ready

This recipe uses the AdventureWorks Lite database—a free database you can download from http://www.codeplex.com/MSFTDBProdSamples. To follow this ...

Get Silverlight 4 Data and Services Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.