I would like to use a DataGrid within the RowDetailsTempalte of another Datagrid. This inner Datagrid should have its columns bound to a property of the current object in t
The last answer on this thread helped me: How is access inner Datagrid in Silverlight?.
On the inner DataGrid I set ItemsSource="{Binding Phones}"
and removed the DataContext
.
Use the RowDetailsTemplate instead: DataGrid.RowDetailsTemplate Property.
You can bind to the DetailsVisibilityChanged
event, and that will pass you the DataContext
of the row that was clicked. From there you can retrieve the details data and update the RowDetailsTemplate
accordingly.