The basic steps for populating a DataGrid in a Silverlight application are:
1) Drag and drop a DataGrid control from the toolbox onto the desired page.
2) Build/generate the business objects that contains the data for the grid.
3) Bind the business objects to the data grid using the DataGrid's ItemsSource.
Step 1 is self explanatory. If you are working through the set of blog posts, add the grid to the Students page. Otherwise, add a grid to any page.
Be sure to set the AutoGenerateColumns property to True so it will automatically show your data.
The Silverlight page is called a "View" because it is the user's view of the application. It is the part of the application that the user sees and interacts with.
Step 2 requires a fundamental decision on how you will get data into your application. The primary choices are:
- Build an entity class in the Silverlight application that is populated from a WCF service.
- Generate an entity class in the Silverlight application using WCF RIA services and Entity Framework.
- Generate an entity class in the Silverlight application using WCF RIA services and your business objects (sometimes called Plain Old CLR Objects or POCOs). See this prior post for more information on using WCF RIA with your business objects.
Follow this link for more detail-
http://msmvps.com/blogs/deborahk/archive/2011/01/22/populating-a-datagrid-in-a-silverlight-application.aspx
http://www.codeproject.com/KB/silverlight/SilverlightDGFromMDB.aspx
(using WCF service)
Hope this will help you.