Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • 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,106
    • Issues 2,106
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • 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
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #27232
Closed
Open
Created Jan 02, 2015 by FPC Admin account@fpc_adminOwner

TDBGrid doesn't fire OnSelectEditor if scrolling past visible extent

Original Reporter info from Mantis: luca @olivluca
  • Reporter name: Luca Olivetti

Description:

When scrolling past the visible rows (either using the up/down arrow, a db navigator or the scrollbar of the grid) the OnSelectEditor event doesn't fire even if the record has changed.
If an editor was previously selected, now it would show the value of the previous record and, worse, it could lead to an unintended modification of the new record.

Steps to reproduce:

Compile and run the attached project. It should load enough test data to fill more than the visible rows.
Click on any cell and see that in the memo is registered the firing of the OnSelectEditor event.
Click on the first cell of the last visible row and again see that OnSelectEditor fires.
Now use the keyboard down arrow to select the next row. OnSelectEditor isn't fired this time.

Additional information:

Tested both under windows and linux.

Mantis conversion info:

  • Mantis ID: 27232
  • Version: 1.2.6
  • Fixed in version: 1.5 (SVN)
  • Fixed in revision: 47911 (#e80dcc0d)
  • Target version: 1.4
Assignee
Assign to
Time tracking