Other developers have already found this glitch in MS Access:
AfterAutoGroupRowCreated not always called Note that this happens only in MS Access. This event works as expected in all other development environments.
To solve the problem, I suggest doing the same work another way. As for me, I do not like the idea of reloading iGrid in the AfterCommitEdit event. In fact, you try to replace the grid contents while iGrid is finishing the editing of the current cell. The related internal algorithm has not finished yet, and iGrid still 'thinks' it has the same cell, the same row and column set, etc. What happens if these things are changed? This may cause unpredictable results, and even a crash in the general case.
To avoid this, launch a timer in AfterCommitEdit and perform your reloading/updating in the timer's event. In this case these actions will be done OUTSIDE of AfterCommitEdit, when it has completely finished.
Another idea is to recalcualte totals manually without reloading the grid. Your grid has a simple structure (at least, in the attached demo), and I think you can write this recalcualtion algorithm easily. But sure, this will work only if your users are not allowed to change the values you group by.
Edited by user
2016-11-03T10:23:05Z
|
Reason: Not specified