Autor Beitrag
domsi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Di 01.10.02 15:14 
hi
gibt es bei dbgrid so etwas wie first ,last und next bei einer table ??
FBrust
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 30
Erhaltene Danke: 2



BeitragVerfasst: Di 01.10.02 15:45 
Hallo domsi,

wenn Du Dich in der Tabelle, die in dem DBGrid dargestellt wird, bewegst (eben mit first, last, next), wandert der Datensatzzeiger in dem Grid mit.

Hoffe, das hilft Dir weiter

Frank
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Di 01.10.02 16:23 
Hallo,

ein zwei weitere möglichkeiten findest du hier ;).

Gruß
Klabautermann
domsi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Di 01.10.02 17:24 
ich benutze keine tabelle
nur ein query und ein datasource da ich im dbgrid keine daten angezeigt bekomme wenn ich eien tabelle benutze
oder bin ich einfach zu blöd dafür ?
FBrust
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 30
Erhaltene Danke: 2



BeitragVerfasst: Di 01.10.02 17:54 
Hallo domsi,

normalerweise müssten im DBGrid die Daten bei Verwendung einer Tabelle genauso erscheinen wie bei einer Query, vorausgesetzt, die Datasource stimmt und die Tabelle ist geöffnet (Active := True bzw. Open).

Gruß
Frank
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Di 01.10.02 18:16 
Hallo,

domsi hat folgendes geschrieben:
ich benutze keine tabelle
nur ein query und ein datasource da ich im dbgrid keine daten angezeigt bekomme wenn ich eien tabelle benutze
oder bin ich einfach zu blöd dafür ?


sowohl Tabellen als auch Query Objekte sind für gewöhnlich nachfolger von tDataSet. Und schon tDataSet definiert diese Navigationsmethoden. Deshalb müssten die auch mit deinem Query funktionieren.

Gruß
Klabautermann