Is it possible to remove some of the items in the context menu that shows up when a user right mouse clicks on a chart?
I am using
chart1.ContextMenu.MenuItems.RemoveAt(1);
however, this keeps throwing a NullReferenceException.
Likewise, is it possible to add an item, previously removed, back into the context menu? What I want to do is, hide the Data Grid item until a certain condition is met. Once this condition is satisfied, show the Data Grid item.
I want to do the same thing to the Data Grid item on the toolbar as well.