Autor Beitrag
EEK
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40

WIN XP
Delphi 5 Pro., Turbo Delphi 2006, C#, C++
BeitragVerfasst: Mo 27.11.06 10:35 
Hi,

gibt es eine Möglichkeit das man automatisch immer den letzten Eintrag in einer DBGrid angezeigt bekommt? Also so das ich in der DBGrid nicht mit der Maus nach unten scrollen muss, sondern das die DBGrid "automatisch" nach unten scrollt.
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mo 27.11.06 10:51 
Du musst einfach das dahinterliegende DataSet entsprechend scrollen:
Query1.Last; oder je nachdem was Du als Abfrage-Objekt hast.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mo 27.11.06 10:52 
Rufe doch mal im DataSet (TQuery oder TTable) die Methode "Last" auf. Oder drehe die Sortierung einfach um. Dann steht der letzte Datensatz ganz oben.
EEK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40

WIN XP
Delphi 5 Pro., Turbo Delphi 2006, C#, C++
BeitragVerfasst: Mo 27.11.06 10:59 
user profile iconjasocul hat folgendes geschrieben:
Oder drehe die Sortierung einfach um. Dann steht der letzte Datensatz ganz oben.

So hab ich es als Notlösung auch erst mal gemacht, aber so will ich es eigentlich nicht.

Danke für den Tipp mit dem "Last"