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.

CurrencyCells and Ctrl+C

Thread ID:

Created:

Updated:

Platform:

Replies:

20242 Oct 13,2004 01:35 AM Oct 13,2004 04:07 PM Windows Forms 1
loading
Tags: Grouping
Dominic Morris
Asked On October 13, 2004 01:35 AM

When this.gridGroupingControl1.TableModel.Options.ActivateCurrentCellBehavior = GridCellActivateAction.None; I can use ctrl+C to copy from non-currency type cells, but currency cells don''t copy onto the clipboard with this keypress. I doubt that this is by-design.

Administrator [Syncfusion]
Replied On October 13, 2004 04:07 PM

You only see this problem when you do not have several cells selected, ie, it only occurs when the currencyedit cell is the currentcell and no other cells are selected. Is this correct? This does appear to be a problem. Until we get this corrected, I think you can work around it by handling the TableControlKeyDown event.
private void gridGroupingControl1_TableControlKeyDown(object sender, GridTableControlKeyEventArgs e)
{
	if(e.Inner.KeyCode == Keys.C && (e.Inner.Modifiers & Keys.Control) != 0)
	{
		if(this.gridGroupingControl1.TableModel.Selections.Count == 0)
		{  
			Clipboard.SetDataObject(this.gridGroupingControl1.TableModel.CurrentCellRenderer.ControlText);
			e.Inner.Handled = true;
		}
	}
}

CONFIRMATION

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.

;