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 when copying and pasting . .

Thread ID:

Created:

Updated:

Platform:

Replies:

59945 Apr 25,2007 12:10 AM Apr 25,2007 04:51 AM Windows Forms 1
loading
Tags: GridControl
Adam K.
Asked On April 25, 2007 12:10 AM

I get an error on the grid if i try to copy and paste using Control-C and Control-V into cell where the paste extends past the last column.

for example, if i have 1 row and 3 columns, and i copy the first 2 cells and move the selected cell all the way over to the right and hit Control-V, i get this exception below.

Please advise.

thks,
ak

Index was outside the bounds of the array
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Syncfusion.Windows.Forms.Grid.GridModel.OnSaveCellInfo(GridSaveCellInfoEventArgs e)
at Syncfusion.Windows.Forms.Grid.GridModel.SetCellInfo(Int32 rowIndex, Int32 colIndex, GridStyleInfo style, StyleModifyType modifyType, Boolean dontRaiseSaveCellInfoEvent, Boolean copyReferenceOnly)
at Syncfusion.Windows.Forms.Grid.GridModel.SetCellInfo(Int32 rowIndex, Int32 colIndex, GridStyleInfo style, StyleModifyType modifyType)
at Syncfusion.Windows.Forms.Grid.GridModel.ChangeCells(GridRangeInfo range, GridStyleInfo[] cellsInfo, StyleModifyType modifyType)
at Syncfusion.Windows.Forms.Grid.GridModelStyleDataExchange.PasteCellsFromDataObject(GridData data, GridRangeInfo range, Boolean bIgnoreDiffRange, Int32 dragDropFlags)
at Syncfusion.Windows.Forms.Grid.GridModelCutPaste.OnPasteFromClipboard(GridRangeInfo rg)
at Syncfusion.Windows.Forms.Grid.GridModelCutPaste.Paste()
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)

Syncfusion.Grid.Windows


Jeba S [Syncfusion]
Replied On April 25, 2007 04:51 AM

Hi Adam,

Please refer the knowledge base articles to avoid the exception.

How to stop the errors thrown when pasting larger clipboard contents in a GridDataBoundGrid?


How do I paste clipboard contents bigger than GridDataBoundGrid row and column count?


Also refer this forum thread for more details:
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=28066

Kindly let us know if this helps.

Best Regards,
Jeba.



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.

;