Sorting, filtering, and grouping data using the DomainDataSource

Using the DomainDataSource, we can shape our data in XAML without writing any code in the code-behind. We can allow the users of our application to shape the data they see on screen by sorting, filtering, or grouping it. This increases the user friendliness of the software by making it easy to find what a user of the application is looking for. In this recipe, you'll learn how to shape your data by sorting, filtering, and grouping it with the DomainDataSource.

Getting ready

This recipe uses the AdventureWorks Lite database—a free database you can download from http://www.codeplex.com/MSFTDBProdSamples. To follow this recipe, you need to have this database installed on an SQL Server ...

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.