Exclude context menu for some controls(GridControl)

Hi, I have a context menu that is associated with a form. In my form i also have a GridControl, which doesn''t want this context menu. How can i exclude the context menu only inside the grid?

1 Reply

AD Administrator Syncfusion Team May 26, 2004 06:08 AM UTC

If a control does not have its ContextMenu property set, it will inherit the menu from its parent. I think this is what you are seeing in this case. So, if you set the grid''s ContextMenu to a new empty menu, it will not display anything. (or, at least that what I saw when I tried it.) //in formload this.gridControl1.ContextMenu = new ContextMenu();

Loader.
Up arrow icon