I have a DevExpress grid control and I want to disable the default context menu that appears when I right click the Grid column headers. To disable this functionality I handled the PreviewMouseRightButtonDown
and PreviewMouseRightButtonUp
private void UserControl_PreviewMouseRightButtonDown_Up(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
e.Handled = true;
}
This is not an acceptable solution. There should be should be something on grid control.