How to: Bind the DXGrid to RIA Service Using the Items Source Configuration Wizard
- 2 minutes to read
This example shows how to connect the Grid Control to data using RIA Services.
NOTE
The Domain Service template that is used in this tutorial has been removed in Visual Studio 2013. It is recommended to use Visual Studio 2010 or Visual Stidio 2012 for this tutorial. After creating the Domain
- Run MS Visual Studio 2010 and create a new project.
Add an ADO.NET Entity Data Model to the project as shown in the images below.
Rebuild the solution. Add a Domain Service Class to the project.
Select a table.
Rebuild the solution. Add a GridControl component to the project.
Open the Visual Studio toolbox, locate the "DX.14.2.Silverlight: Data" tab, choose the GridControl toolbox item and drop it onto the window.
Right-click the GridControl and select Reset Layout - All.
Click the smart-tag glyph at the top right corner of the control to invoke the GridControl smart tags panel. Click the Create Data Source button displayed within the panel to invoke the wizard.
Select the RIA data access technology and choose the created data source. Click the Next button.
Choose the Domain Data Source data processing mode and click the Next button.
Specify the binding options such as group and sort descriptions and click the Finish button.
Run the application to see the result: