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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CurrencyCells and Ctrl+C

Thread ID:

Created:

Updated:

Platform:

Replies:

20242 Oct 13,2004 05:35 AM UTC Oct 13,2004 08:07 PM UTC WinForms 1
loading
Tags: Grouping
Dominic Morris
Asked On October 13, 2004 05:35 AM UTC

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 08:07 PM UTC

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.

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

;