We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon