DBGrid.Datasource.Dataset.Next always moves to the last line in the grid lazarus / 16-Databases ---------------------------------------------------------------------- daveinhull · 2019-01-21 20:12 Hi, I'm trying to move to the next line in the grid when the tab key is at the last column so I detect this and use .Next to get to thenext line, but the selected cell is alwasy the on the last row? Any thoughts? Dave ---------------------------------------------------------------------- daveinhull · 2019-01-21 20:22 Sorry, my mistake, the Selected Index was still at the last column when I move next so it them moved next again. Needed to put selected index back to 0 and then .Next.