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

CurrencyCells and Ctrl+C

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.

1 Reply

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

Loader.
Live Chat Icon For mobile
Up arrow icon