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

Copy 'n Paste Popup

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

2 Replies

AD Administrator Syncfusion Team 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;
	}
}


MR Mike Reynolds March 6, 2003 05:27 AM

Thanks Clay!

Loader.
Live Chat Icon For mobile
Up arrow icon