unvell / ReoGrid

Fast and powerful .NET spreadsheet component, support data format, freeze, outline, formula calculation, chart, script execution and etc. Compatible with Excel 2007 (.xlsx) format and working on .NET 3.5 (or client profile), WPF and Android platform.
https://reogrid.net
MIT License
1.32k stars 390 forks source link

preserve CellData object during copy and paste #497

Open CanadianHusky opened 1 year ago

CanadianHusky commented 1 year ago

Describe the feature

When Cell content is created with worksheet.setCellData(1,1,myDataObject) using a custom object like shown in the documentation

public class MyData { public override string ToString() { return "mydata"; } }

and the User does manual COPY & PASTE operation from Cell(1,1) to any other Cell, the pasted Cell does not have proper object reference or a copy of the object anymore, but only the DisplayText is copied to the target

worksheet.GetCellData(Of MyData)(2, 2) returns only the displayed string while the original cell returns a proper object

Feature Request: During user Copy & Paste operations, if the source Cell has a Data Object, it should be copied to the target cell as well.

Which edition of ReoGrid is targeted

Thank you for this amazing control