Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2265
UltraGrid - Copy and Paste - Multi Cell Operations (with Business Objects)
posted

My grid is bound to my data/business objects.  All works well.  I can add/remove/etc.  I can even copy and paste a single cell value with no real problems.  The UltraGrid updates my underlying business object property for the column that has been pasted into.  Even when the column is bound to a list of objects using an UltraCombo I can copy a string to this column and that works too. 

I was looking at the following issue but there was no real followups:

http://es.infragistics.com/community/forums/p/45867/247538.aspx#247538

The problem I get when I try and paste to multiple cells - which a bound to a list of my business objects.  I have 2 rows in the grid with existing data there.  I have copied the following data from the table (2 rows, 2 columns):

SW 1 +   SW 2 John Smith
SW 1 +   SW 2 John Doh

 

When I select the same cells to paste into, I get the following error (I can see more information in the Error event):

Error performing Paste operation. Further information: Unable to convert the value 'SW 1 + SW 2' to the column's data type: Illegal data value    Continue with the remaining cells?

All works fine when I paste the above one by one. 

Why would a multi cell operation fail, but the single cell would work?  Any ideas where I should look to help with this?

Thanks,

Andez