Hi,
When exist an CellChanging event the EditCellDone is calling two times. If the CellChanging event do not exist the EditCellDone is called only one time.
It is correct? In previus versions the EditCellDone always were called one time.
Kind regards,
Diego
Pieter
(Pieter)
February 15, 2022, 8:14pm
2
Hi,
We have checked this here and the OnEditCellDone is only called once. Can you put together a sample app?
I've just come across this with the latest version of the grid.
It only seems to happen with string cells, not combos or spin controls.
I replicated it with a single form project with one grid and no code apart from the EditCellDone handler.
The very first time it only gets called once, but after that it gets called twice after each edit is done.
I've just tested it again and the CellEditDone and EditingCellDone both fire twice (after the first edit) with standard string cells on Delphi XE.
The same test on Delphi 12.2 shows no issue, but I need it to work correctly with XE too.
I cannot reproduce this or insufficient details are provided:
Did you test with Delphi XE?
This is very odd. I just tried it again with the same code as you:
Are you 100% you compile & link with the latest version?
Do a runtime check with:
showmessage(advstringgrid1.VersionString);
That shows "9.1.4.0 Dec, 2024"
That is strange.
What operating system is this?
Did you test this on multiple machines?
Windows 10 Pro 22H2. When I'm back at work next week I'll check it on my dev machine there.
My example exe was checked on another PC with same (bad) result. I just recreated the same project on my work dev PC and same (bad) result there too.
The common thing is the version of Delphi (XE) and windows version (Windows 10 Pro 22H2).
Only after very specific sequences of leaving the inplace editor, we could see this in XE. We applied a fix for this now that will be included in the next release.
1 Like
Thank you. I can confirm that the issue is fixed with the latest version (grid 9.1.4.1).
1 Like