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
140
MultiCellOperation Paste
posted

Hi,

In the grid I have column which is of type Integer and I use a valuelist which display text to the user of the item selected.

I have .Override.AllowMultiCellOperations = AllowMultiCellOperation.All.

Now if I hightlight the text in a cell of the column and copy it (CTRL + C) and then do to empty cell and paste (CTRL + V) it paste everything fine, no problems with no code, it sets the cell value to teh integer and displays the text properly.

But if I select of a cell of the column and copy it (CTRL + C)  and then try to Paste it to multiple cell in the same column I get an error. "Error performing Paste Operation. Futher Information: Unable to convert the value 'Other' to the column's data type." Ok, I somewhat understand the error but it did work with one cell, why not more than one?

Also I have taken a look at the BeforeMultiCellOperation event, but it does not provide what cell was copied and it only provides the text of the cell and not the value.

ANy help in what I am try to do?