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.

Exception during Copy operation

Thread ID:

Created:

Updated:

Platform:

Replies:

22317 Dec 9,2004 12:17 PM Dec 9,2004 06:26 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 9, 2004 12:17 PM

I have users getting an exception when the select a few rows in a databound grid control. The rows can have a very large volume of data on them. I am guessing the copy buffer can''t hold all the data. But I don''t think it should throw an exception. Is there a workaround to this?

Administrator [Syncfusion]
Replied On December 9, 2004 06:26 PM

You can handle the grid.Model.ClipboardCopy event and handle the copy yourself inside a try-Catch block, and handle the exception. maybe something like:
private void gridControl1_ClipboardCopy(object sender, GridCutPasteEventArgs e)
{
	try
	{
		GridRangeInfoList list = new GridRangeInfoList();
		list.Add(this.gridControl1.CurrentCell.RangeInfo);
		this.gridControl1.CutPaste.CopyCellsToClipboard(list, true);
		e.Handled = true;
		e.Result = true;
	}
	catch
	{
	}
}

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.

;