Skip to main content

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 DomainService class you can migrate your application to Visual Studio 2013.

  1. Run MS Visual Studio 2010 and create a new project.
  2. Add an ADO.NET Entity Data Model to the project as shown in the images below.

    Add ADO EDM

    EDM Wizard

    huge

    EDM Wizard tables

  3. Rebuild the solution. Add a Domain Service Class to the project.

    adding Domain Service

    Select a table.

    Domain Service Class

  4. 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.

  5. Right-click the GridControl and select Reset Layout - All.

    newresetlayoutgrid

  6. 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.

    grid_smarttag

  7. Select the RIA data access technology and choose the created data source. Click the Next button.

    iscw1

  8. Choose the Domain Data Source data processing mode and click the Next button.

    iscw_2

  9. Specify the binding options such as group and sort descriptions and click the Finish button.

    iscw_3

  10. Run the application to see the result:

    binding_result