O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Filtering and paging data in a DataGrid

Applies to Silverlight 3, 4, and 5

Along with offering us support for the sorting and filtering of data, the PagedCollectionView has more tricks up its sleeve. It is also the enabler for filtering rows in a DataGrid and in combination with the DataPager control (a control added with Silverlight 3); it allows us to spread the data over several pages within the DataGrid.

In this recipe, we'll look at how we can filter based on a value specified by the user and we'll page the results based on the number of returned results, if needed.

Getting ready

This recipe builds on the code that was created in the previous recipes. You can continue using your code to follow this recipe. Alternatively, you can use the start ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required