I'm currently working on expanding the Expander
of a grouped DataGrid
when an item is selected programatically.
The approach I am going for is to select an object that's in the visual tree related to the selected Item and navigate up for the first Expander
it can find, and set the IsExpanded
property to true.
I put the pieces together assuming when selecting an item programatically that the SelectedCellsChanged
which it does, but unfortunately the e.AddedCells doesn't contain anything. Therefore I'm now unsure about how to get what I need, believing this would be either the cell or row object to search up from in the visual tree.
Any Suggestions / methods are much appreciated,
Thanks.