Can you explain what the Infragistics Grid Copy/Paste from Excel feature does? Can I do copy and paste of highlighted or selected columns or rows within the Ultra Win grid like Excel ?
Was there resolution to this issue? I seem to be getting it as well.
Ramsey,
I have created case CAS-64104-5BFMPMP so that I can assist you through the case. You can attach your code from the form with the issue to that case and I will take a look at it.
The case can be viewed from the My Support Activity page.
Let me know if you have any questions with this matter.
I commented out any properties that were being set at runtime and then created the InitializeLayout handler and put those two lines of code in it to set the properties.
I still have empty sub declarations for the BeforePerformAction and for the Error handler. I have put breakpoints on each of the declarations so they will be hit regardless of what code might be in either of them. When I try to copy 7 rows to the new row at the bottom of the grid I get the following eventargs.ErrorText in the Error handler:
"Error performing Paste operation. Further information: Contents being pasted have more rows than what's available starting from the anchor cell. Paste contents have 7 rows where as the available rows starting from the anchor cell are 1. "
I can cause the BeforePerformAction event to be raised by entering a Ctrl-End keystroke so I know the event handler is declared properly but I can not get to it by pasting too many rows into the grid.
Let me know how to do it and I will gladly send you all the code for the offending form.
What is the error that you are getting in the error handler? Are you able to paste the same content into the sample that I provided?
If there is a difference in behavior between your application and my sample, then there may be different properties set on the grid. In my sample the only relevant properties that I have set are set in the InitializeLayout event handler:
void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e){ e.Layout.Override.CellClickAction = CellClickAction.CellSelect; e.Layout.Override.AllowMultiCellOperations = AllowMultiCellOperation.All; }
}
What happens if you set these same properties in your application? If there is still a difference in behavior, let me know what else you have set and I can modify my sample and test again. Alternatively if you have a sample that reproduces the issue, I could debug that.
Thanks. No, I translated the code myself. I can do either language. I even commented out the whole handler that I had placed your code in and allowed the IDE to create the declaration again. I put a breakpoint on the declaration of the handler and on the error handler. The error handler was hit but the BeforePerformAction was not. For the sake of discussion though, here is the declaration:
UltraGrid1.BeforePerformAction