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

Copy 'n Paste Popup

Thread ID:





3158 Mar 5,2003 07:40 PM UTC Mar 6,2003 10:27 AM UTC WinForms 2
Tags: GridControl
Mike Reynolds
Asked On March 5, 2003 07:40 PM UTC

Hello- When I select some text in a cell I'm able to do a C and then V the selected text elsewhere. However the Copy 'n Paste popup does not appear on right click. Is this by design? Do I have to implement this myself? Thank You Mike Reynolds

Administrator [Syncfusion]
Replied On March 5, 2003 09:32 PM UTC

The embedded text control used by Essential Grid is derived from RichTextBox. RichTextBox does not have a default context menu like the TextBox. So, yes, you will have to do this yourself. You can drop a context menu on your form, add its menuitems, and then set it to the embedded textbox after the textbox has been created. Below is a snippet.
private bool setOnlyOnce = true;
private void gridDataBoundGrid1_CurrentCellStartEditing(object sender, System.ComponentModel.CancelEventArgs e)
	GridTextBoxControl tb = (GridTextBoxControl)this.gridDataBoundGrid1.CellRenderers["TextBox"].Control;
	if(tb != null && setOnlyOnce)
		tb.ContextMenu = this.contextMenu1;
		setOnlyOnce = false;

Mike Reynolds
Replied On March 6, 2003 10:27 AM UTC

Thanks Clay!


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