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.

Clipboard Exception

Thread ID:

Created:

Updated:

Platform:

Replies:

22376 Dec 10,2004 12:03 PM Dec 10,2004 02:41 PM Windows Forms 1
loading
Tags: GridControl
Zubin Tiku
Asked On December 10, 2004 12:03 PM

I am currently developing a product using the EssentialGrid and am experiencing an error regarding the clipboard, however it only seems to occur on certain machines and only when I try to copy large quantities of information (3000 rows by 13 columns) from the Grid into the clipboard. The affected machines are using EssentialGrid 2.0.5.0, and Windows 2000 5.0.2195 Service Pack 4, and .NET 1.1.4322. P.S. I am also using the Grid in Virtual Mode. The stack trace is as follows: System.Runtime.InteropServices.ExternalException: The requested clipboard operation failed. at System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy) at System.Windows.Forms.Clipboard.SetDataObject(Object data) at Syncfusion.Windows.Forms.Grid.GridModelCutPaste.CopyCellsToClipboard(GridRangeInfoList rangeList, Boolean bLoadBaseStyles) at Syncfusion.Windows.Forms.Grid.GridModelCutPaste.CopyRange(GridRangeInfoList rangeList) at Syncfusion.Windows.Forms.Grid.GridModelCutPaste.Copy() at Syncfusion.Windows.Forms.Grid.GridControlBase.OnKeyDown(KeyEventArgs e) at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m) at Syncfusion.Windows.Forms.Grid.GridControlBase.ProcessKeyEventArgs(Message& m) at System.Windows.Forms.Control.ProcessKeyMessage(Message& m) at Syncfusion.Windows.Forms.Grid.GridControlBase.ProcessKeyMessage(Message& m) at System.Windows.Forms.Control.WmKeyChar(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg) at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Administrator [Syncfusion]
Replied On December 10, 2004 02:41 PM

Hi Zubin, can you modify one of our samples or send us your sample project and provoke that error on those machines? The error you describe does not ring any bells on my side what could be wrong. Some ideas: Could it be related to memory available on these machines? Were there maybe other objects already placed on the clipboard before? Do you need style information be pasted? Does it work if you specify this.gridControl1.Model.CutPaste.ClipboardFlags &= ~GridDragDropFlags.Styles; FYI - This is how the actual method looks like where you get the exception: public bool CopyCellsToClipboard(GridRangeInfoList rangeList, bool bLoadBaseStyles) { GridData data; int rowCount, colCount; if (Model.DataExchange.CopyCellsToDataObject(out data, rangeList, bLoadBaseStyles, m_nClipboardFlags, out rowCount, out colCount)) { if (m_dataObject == null) m_dataObject = new DataObject(); m_dataObject.SetData(data); Clipboard.SetDataObject(m_dataObject); return true; } return false; } Stefan

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.

;