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

An exception occurred during the undo operation #501

Open LemonSugar198 opened 1 year ago

LemonSugar198 commented 1 year ago

Description

When the parameters of sheet.SetCols and rp.SetCols are the same, CTRL+Z will be abnormal, and it takes two operations to complete. If the parameter of sheet.SetCols is greater than rp.SetCols, this is not the case

To Reproduce

  1. Enter "1" in the "data" control

  2. Click on 'Add'

  3. Click on 'Insert.'

  4. Enter "2" in the "data" control

  5. Click on 'Add'

  6. Click on the blank area

    企业微信截图_16876741914608
  7. Press CTRL+Z.The text is smaller, but not undone

    企业微信截图_16876742959608

8.Press CTRL+Z again.Undo complete. 9.If the parameter of sheet.SetCols is greater than rp.SetCols, this is not the case

企业微信截图_16876744374600

ReoGridUndoReproduce.zip Please kindly assist me on the above issue. Let me know if you need any further details on the same.

Edition

Which edition of ReoGrid do you using?

Environment