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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exclude context menu for some controls(GridControl)

Thread ID:





14377 May 26,2004 04:16 AM UTC May 26,2004 06:08 AM UTC WinForms 1
Tags: GridControl
Asked On May 26, 2004 04:16 AM UTC

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?

Administrator [Syncfusion]
Replied On 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();


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon