Creating the Summary List

In Chapter 5 we looked at how you can consume data from the server. Now it's time to display that data to the user. The most commonly used controls for presenting a summary list to the user are the DataGrid control and the ListBox control, so we will investigate how to configure both these controls, and compare and contrast the two so you can determine the most appropriate control to use for your purposes.

Using the DataGrid Control

Configuring a DataGrid control essentially involves setting up the columns to be displayed. If you happen to have presentation layer information, using the Display attribute discussed in Chapter 4, in the metadata of the entity being displayed, then simply assigning the collection to the ...

Get Pro Business Applications with Silverlight 5 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.