I am just starting out, and trying to use data binding to display a parent child relationship.
I need to first have the user select in a ComboBox my List of "Currency" objects and display in a Grid the related "CurrencyRates" collection of the selected currency object
I can see the list of currencies in the combo when I bind the ItemsSource property to the DataContext
I am not sure how to get a Grid to show the child collection CurrencyRates.... I've tried the code below but didn't work
I am using EF4
I need to first have the user select in a ComboBox my List of "Currency" objects and display in a Grid the related "CurrencyRates" collection of the selected currency object
I can see the list of currencies in the combo when I bind the ItemsSource property to the DataContext
<
telerik:RadComboBox
ItemsSource
=
"{Binding}"
DisplayMemberPath
=
"Name"
x:Name
=
"cboCurrencyList"
/>
I am not sure how to get a Grid to show the child collection CurrencyRates.... I've tried the code below but didn't work
Source="{Binding ElementName=cboCurrencyList, Path=SelectedValue}"/>
I am using EF4