I have a DataGrid that has uses a RowDetailsTemplateSelector. The selector returns a DataTemplate that contains a DataGrid if the number of team members is greater than 0, other wise the selector returns null. The DataGrid in the DataTemplate
uses the same selector to achieve a grouping of nested datagrids. Following the answer from Linda Liu to the question "RowDetails Visibility Toggle"
I am able to control on the main DataGrid when the row details are shown and when they are hidden. Since the sub datagrids are just duplicates of the main DataGrid I would like to have the same functionality. The problem I am running into is trying
to get a DataGrid from a DataGridRow instance since I don't know how many sub datagrids there are going to be.
Any advice on how to do this is much appreciated.
View Complete Post