Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Created Unassigned: Assigning a cell value to another cell doesn't work [15168]

$
0
0
While trying to copy a value from one cell to another I found that doing the following in 4.0.2 (and at least 4.0.1.1) doesn't change the value of the cell I'm assigning to:
```
cells[row, dstCol].Value = cells[row, srcCol].Value;
```
After this statement the target value is still the same as before the assignment.

If I do this in two steps instead, it does work:
```
object value = cells[row, srcCol].Value;
cells[row, dstCol].Value = value;
```

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>