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.

How do you hide a separator BarItem in the context menu

Thread ID:





103476 May 4,2012 10:37 AM May 10,2012 06:46 AM Windows Forms 1
Tags: GridControl
Bryan Burroughs
Asked On May 4, 2012 10:37 AM

I've got a context menu in a grid where I want to conditionally display the items.  The menu is partially generated at runtime, and I can't just rebuild it when needed.  I created a separator BarItem like so:

   separatorItem = new BarItem("-");

In order to hide the item from the menu, I tried setting separatorItem.Visible to false, but the item still shows.

Ragamathulla B [Syncfusion]
Replied On May 10, 2012 06:46 AM

Hi Bryen,

Thank you for your interest in syncfusion products.

Am afraid that am unable to reproduce your reported issue. So we request you to send us the reproducing sample so that we could sort out the cause of the issue and provide you a solution?

Let me know if you have any further concerns.


Ragamathullah B.


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.