ReoGrid
ReoGrid copied to clipboard
CellDataChanged event not triggered when paste data from Clipboard
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
- Add CellDataChanged event and put a break point on the event handle.
- Debug the code with VS2019
- Paste data from Clipboard into ReoGrid controller.
- 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
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.