I also put it here because I think the problem is with SQLQuery and not with DbGrid.
When I click on DBGrid while running a Locate on SQLQuery, the DBGrid crashes. Can I prevent this somehow? Disable / EnableControls doesn't help. I am attaching two screenshots, before and after Locate.
Lazarus 2.0.12, FPC 3.2.0, OS Win10, PostgreSQL 13
In demo:
Please click "Populate", wait a while, click "Locate" and quickly click in the DBGrid area.
The problem only occurs when the searched field is sorted descending.
For ease of use, the demo uses SQLite.
Oryginal post:
https://forum.lazarus.freepascal.org/index.php/topic,54966.0.html