Hi,
I need 3 different context menus; each one to be opened on a specific cell type.
According to you what is the best way to do it ?
To build each one during the form load and switch between them when the selected cell type wanted is detected ?
Why in the second example in C# of Managing GridDesktops Context Menu
it is the gridDesktop.ContextMenu which is used and not GridDesktop.ContextMenuManager.ContextMenu ?
With the same example, how do I know where (on which cell), the user clicked to open the context menu ?
Here is the example copied from your site
//Define a new menu item and specify its event handler
MenuItem mi = new MenuItem(“newMenuItem”, new System.EventHandler(miClicked));//Set the label
mi.Text = “New Item”;//Add the menu item to the GridDesktop’s context menu
gridDesktop1.ContextMenu.MenuItems.Add(mi);//Event Handler for the new menu item
private void miClicked(object sender, EventArgs e)
{
MenuItem mi = (MenuItem)sender;
MessageBox.Show("miCliked: " + mi.Text);
}