Using the PerformAction(UltraWinGrid.UltraGridAction.Copy) method to copy the collection of selected cells seems to always copy the formatted (ie. displayed) value rather than the actual cell value. This can lead to significant rounding issues if a user is trying to copy values to Excel and then do some types of calculations on the pasted value.
Is there a way to cause the grid to copy the actual cell values or must we implement this functionality on our own.
Dana
Hi Dana,
Copying from the grid uses the display text because that's what the user sees. It would be a little odd to expose values the user cannot see via copy and paste when the use cannot other see those values - although I can understand that in some cases it might be useful.
If the column in question is using the MaskInput property, then you might try setting the MaskClipMode on the column to something like Raw so that it copies the entire value. I'm not sure this will work with the MultiCellOperation copying and it might not work if you are using the Format property of the column in addition to the MaskInput, but it's worth a try.
If that doesn't work, then I think you will probably need to handle this manually for now. But you should also Submit a feature request to Infragistics.
So, in order to copy the actual cell contents we must implement the the copy operation ourselves. That is what I thought.
Thanks,
Hello,
I just wanted to know if you need any further assistance with this issue?
Just let me know.
Thank you.