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.

Copy 'n Paste Popup

Thread ID:





3158 Mar 5,2003 02:40 PM Mar 6,2003 05:27 AM Windows Forms 2
Tags: GridControl
Mike Reynolds
Asked On March 5, 2003 02:40 PM

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 04:32 PM

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 05:27 AM

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.

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.