In the following example you see a WPF DataGrid with a context menu to disable the selected item. With this definition you can also click on the DataGridColumnHeader and the context menu will appear. That is a bit confusing as