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

context menus

Thread ID:





16401 Jul 14,2004 04:30 PM UTC Jul 14,2004 04:51 PM UTC WinForms 1
Tags: GridControl
Philip Bishop
Asked On July 14, 2004 04:30 PM UTC

I have this code that i got from clay that will get rid of context menus on the grids. It only seems to work for grids with currency cells. If I try to change this code to work on OriginalTextBox cells it blows up. Is there a way u can turn off the right click menu for the grid in general regardless of if columns have diff cell types??? Dim c As Control = Me.grdInitCredInv.CellRenderers("Currency").Control c.ContextMenu = New ContextMenu

Administrator [Syncfusion]
Replied On July 14, 2004 04:51 PM UTC

If you want every control in teh grid to have an empty contextmenu, you could try subscribing to the grid.ControlAdded event and setting the context menus there. this.gridControl1.ControlAdded += new ControlEventHandler(gridControl1_ControlAdded);
private void gridControl1_ControlAdded(object sender, ControlEventArgs e)
	e.Control.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