ReoGrid icon indicating copy to clipboard operation
ReoGrid copied to clipboard

CellDataChanged event not triggered when paste data from Clipboard

Open 18628271760 opened this issue 4 years ago • 1 comments

Description

Paste data from Clipboard, the CellDataChanged event not triggered. But change the cell data can trigger it.

From the document (https://reogrid.net/v0-8-6/cell-edit-event-flow/), it mentioned that: "The CellDataChanged event is raised when data is changed in any way, including call method SetCellData and pasted from Clipboard, it is the final change to observe and change the cell data, it doesn’t provide the ability to cancel the change operation.".

To Reproduce

  1. Add CellDataChanged event and put a break point on the event handle.
  2. Debug the code with VS2019
  3. Paste data from Clipboard into ReoGrid controller.
  4. See error as CellDataChanged event not triggered (Code not pause in the break point).

Screenshots

Edition

Which edition of ReoGrid do you using?

  • WPF (.net core 3.1)
  • ReoGrid version (unvell.ReoGridWPF.dll 3.0.0 from Nuget)

Environment

  • OS: Win10
  • Language of OS: English

18628271760 avatar Nov 04 '21 07:11 18628271760

Thanks. Maybe you can use the AfterPaste event.

The CellDataChanged event fired for a range changing is not an efficient way. It should be replaced with AfterPaste or RangeDataChanged, I will update the document.

jingwood avatar Nov 05 '21 14:11 jingwood