Wrong value posted to dataset after cancelling edit by Esc-key in DbGrid
Original Reporter info from Mantis: abonic1
-
Reporter name:
Original Reporter info from Mantis: abonic1
- Reporter name:
Description:
Under certain conditions, Esc-key will will only seemingly undo changes in the DbGrid. But in the linked dataset will be posted different value, the one that was before 'Esc'.
Steps to reproduce:
- Start attached demo.
- Change value in the first cell from '1' to '100' and then press 'Esc' once. Changes are canceled and cell value is reverted to '1', as expected.
- Press Down key (or initiate Post on some other way). The value in the first cell (and in the dataset) is now '100'.
Additional information:
Demo use TMemDataset, but the same thing happens with TSqlQuery or TZQuery.
Mantis conversion info:
- Mantis ID: 29261
- Version: 1.6RC1
- Fixed in version: 1.7 (SVN)
- Fixed in revision: 51088 (#c93f1b0a)
- Target version: 1.6