Teegrid scrolls to top after editing a cell
Posted: Fri Aug 15, 2025 9:27 am
Hi,
I noticed the following behavior which I'm not able to solve as of yet:
When editing a cell and pressing enter the teegrid scrolls back to the top. It doesn't stay at the same row.
How to reproduce:
1. Place a Teegrid on a form together with a TDatasource and a TClientDataset.
2. Define some fields on the TClientDataSet, right click and choose "Create Dataset".
3. In the code fille the dataset with some rows (more than would fit into the view area of the grid)
4. Scroll to the bottom and edit a cell and press enter (or tab)
5. The grid scrolls to the top
I would expect no scrolling whatsoever after pressing enter.
I'm using a licensed version v1.18 and Delphi 10.4 Version 27.0.38860.1461
See attached for example code and GIF.
I noticed the following behavior which I'm not able to solve as of yet:
When editing a cell and pressing enter the teegrid scrolls back to the top. It doesn't stay at the same row.
How to reproduce:
1. Place a Teegrid on a form together with a TDatasource and a TClientDataset.
2. Define some fields on the TClientDataSet, right click and choose "Create Dataset".
3. In the code fille the dataset with some rows (more than would fit into the view area of the grid)
4. Scroll to the bottom and edit a cell and press enter (or tab)
5. The grid scrolls to the top
I would expect no scrolling whatsoever after pressing enter.
I'm using a licensed version v1.18 and Delphi 10.4 Version 27.0.38860.1461
See attached for example code and GIF.