TDBGrid doesn't fire OnSelectEditor if scrolling past visible extent
Original Reporter info from Mantis: luca @olivluca
-
Reporter name: Luca Olivetti
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