views:

16

answers:

1

In an event handler for a Command for a DataGrid, I get DataGridCell in ExecutedRoutedEventArgs. However, I couldn't figure out how to get its associated DataGrid and DataGridRow. Your help is much appreciated.

A: 

worse case scenario, you need to look up the visual tree.

GlitterMonkey
Yeah, I guees that's the way to go. I found some stuff at http://stackoverflow.com/questions/636383/wpf-ways-to-find-controls, which gives me what I need.
miliu