The DataGrid

DataGrid is, at its name suggests, a data-display control that takes the information from a collection of objects and renders it in a grid of rows and cells. Each row corresponds to a separate object, and each column corresponds to a property in that object.

The DataGrid adds much-needed versatility for dealing with data in Silverlight. Its advantages include the following:

  • Flexibility: You use a column-based model to define exactly the columns you want to use and supply the binding expressions that extract the data from the bound objects. The DataGrid also supports a few important tools you learned about in Chapter 20, such as templates and value converters.
  • Customizability: You can radically alter the appearance of the DataGrid ...

Get Pro Silverlight 5 in VB 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.