Recent

Author Topic: DBGrid.Datasource.Dataset.Next always moves to the last line in the grid  (Read 1191 times)

daveinhull

  • Sr. Member
  • ****
  • Posts: 297
  • 1 divided by nothing must still be 1!
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
« Last Edit: January 21, 2019, 09:22:15 pm by daveinhull »
Version #:1.8.4 Date 2019-01-08 FPC Version: 3.0.4 and SVN Revision 57972 for x86_64-win64-win32/win64

daveinhull

  • Sr. Member
  • ****
  • Posts: 297
  • 1 divided by nothing must still be 1!
Re: DBGrid.Datasource.Dataset.Next always moves to the last line in the grid
« Reply #1 on: January 21, 2019, 09:22:02 pm »
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.
Version #:1.8.4 Date 2019-01-08 FPC Version: 3.0.4 and SVN Revision 57972 for x86_64-win64-win32/win64

 

TinyPortal © 2005-2018