Demonstrated issues:

Prerequisities:

Steps:

  1. Create an ASP.NET Web application which will serve data for requests from a Silverlight application.
  2. Create a data model and a data service in the existing project
  3. Create a Silverlight application to consume data served by the data service.
  4. Add a ComboBox control which will allow the user to select a customer. Add also a TextBox control which will be used to display information. Place both these controls in StackPanel, to make an arrangement:
    <StackPanel>
        <TextBox
            x:Name="StatusTextBox" 
            Margin="5"
            Padding="5"
            TextWrapping="Wrap"
            HorizontalAlignment="Center" 
            VerticalAlignment="Center"
            VerticalScrollBarVisibility="Auto" 
            />
     
        <ComboBox
            x:Name="CustomersComboBox" 
            Width="260"
            ItemsSource="{Binding}"
            />
    </StackPanel>
    A collection of customers data retrieved from the data service will be bound to the ComboBox control.
  5. Add a DataGrid control to display all orders of selected customer.
  6. The DataGrid control presenting the selected customer's orders is editable, however changes are not saved in the database. Let's add this functionality.

[Source code]