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

Exclude context menu for some controls(GridControl)

Thread ID:

Created:

Updated:

Platform:

Replies:

14377 May 26,2004 12:16 AM May 26,2004 02:08 AM Windows Forms 1
loading
Tags: GridControl
Dmr
Asked On May 26, 2004 12:16 AM

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 02:08 AM

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();

CONFIRMATION

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.

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.

;