AD
Administrator
Syncfusion Team
December 10, 2004 07:41 PM UTC
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