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.

context menu

Thread ID:





103044 Mar 26,2012 03:36 PM Apr 10,2012 01:11 AM ASP.NET Web Forms (Classic) 2
Tags: GridGroupingControl
Asked On March 26, 2012 03:36 PM

I am trying to add a context sensitive menu for a windows forms with a grid control.
So I've used a context menu and added it.
But the context menu doesn't disappear even after selecting my option.
How can i set it that the context menu disappears after right click?


Mercy C [Syncfusion]
Replied On April 10, 2012 01:09 AM

Hi Smitha,

Thanks for your interest in Syncfusion products.

You can handle "CellClick" event to display the context menu when right mouse button is clicked.

void gridControl1_CellClick(object sender, Syncfusion.Windows.Forms.Grid.GridCellClickEventArgs e)
if (e.RowIndex >= 2 && e.MouseEventArgs.Button == MouseButtons.Right)
this.contextMenuStrip1.Show(this.gridControl1, e.MouseEventArgs.Location);

Please refer to the sample in the following link

Please let me know if you have any concerns.


Ragamathulla B [Syncfusion]
Replied On April 10, 2012 01:11 AM

Hi Smitha,

Thank you for your interest in syncfusion products,

You can have context menu on right click on column headers by using ‘TableControlCellClick’ event along with the following code. Please refer the following code to achieve the behavior.

Sample link:


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.