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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exclude context menu for some controls(GridControl)

Thread ID:

Created:

Updated:

Platform:

Replies:

14377 May 26,2004 04:16 AM UTC May 26,2004 06:08 AM UTC WinForms 1
loading
Tags: GridControl
Dmr
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();

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.

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

;