Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,080
    • Issues 2,080
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #29261
Closed
Open
Created Dec 27, 2015 by FPC Admin account@fpc_adminOwner

Wrong value posted to dataset after cancelling edit by Esc-key in DbGrid

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:

  1. Start attached demo.
  2. 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.
  3. 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
Assignee
Assign to
Time tracking