How do you select all cells of the clicked column header?

Feb 13, 2009 at 6:30 PM
Would like to click on a column header to sort and also select all the column cell values
so I can copy and paste into excel. Any way to accomplish the above?
Feb 14, 2009 at 3:02 PM
See this
Feb 17, 2009 at 7:10 PM

I have two grids on the same window and need to know which grid to use for copying the cells. From method
    selectColumn( object sender, RoutedEventArgs e )



How do you know which grid is it? 

This is the sender info I see 
base {System.Windows.Controls.Primitives.ButtonBase}: {System.Windows.Controls.Button}


Feb 20, 2009 at 10:18 PM
I am using FindVisualParent to find the target DataGrid and use it a reference. That does it.