Displaying data in a customized DataGrid
Displaying data is probably the most straightforward task we can ask the
DataGrid to do for us. In this recipe, we'll create a collection of data and hand it over to the
DataGrid for display. While the
DataGrid may seem to have a rather fixed layout, there are many options available on this control that we can use to customize it.
In this recipe, we'll focus on getting the data to show up in the
DataGrid and customize it to our likings.
In this recipe, we'll start from an empty Silverlight application. The finished solution for this recipe can be found in the
Chapter04/Datagrid_Displaying_Data_Completed folder in the code bundle that is available on the Packt website.
How to do it...
We'll create ...
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.