contextmenu on columnheader

Jan 16, 2009 at 11:34 AM
Hi

I want to display a dynamic context menu (from code) when right-clicking on the row header (not the column header!)

Any clues?

Regards
Klaus
Jan 19, 2009 at 6:09 AM
Hi

I guess you can use the same method as on the column headers.

Se this thread:
http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=38919

Morten



Jan 19, 2009 at 7:19 PM
Hi

I have to fill the contextmenu at runtime based on really complex rules, so I did not go the style way.

But this gem (brought to us by Colin, thanks mate) really works nice and does all I needed

http://wpfadventures.wordpress.com/2008/12/02/wpf-datagrid-detecting-clicked-cell-and-row/

Regards
Klaus