Autor Beitrag
ForenHeini
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28

Win XP
Delphi 7
BeitragVerfasst: Mo 30.10.06 12:59 
Hi !

Möchte gerne eine Ergebnistabelle ausgeben.
Da soll nix geändert werden.
Die Tabelle soll mit Daten aus eine Record befüllt werden.

Ist da StringGrid oder DBGrid besser?
Was sind die Vor- und Nachteile der beiden?
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Mo 30.10.06 13:06 
nimm ein stringgrid...

Stringgrid : Anzeige lokaler Daten
DBGrid : Anzeige von DB-Daten
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mo 30.10.06 13:06 
Ein StringGrid ist ein Gitter von Strings. Beim DBGrid ist der Feldinhalt variabel. Wie der Namen aber schon sagt visualisiert ein DBGrid eine (Datenbank-)Tabelle. Also würde sich ein StringGrid anbieten oder ein ListView.

_________________
Markus Kinzler.
ForenHeini Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28

Win XP
Delphi 7
BeitragVerfasst: Di 31.10.06 13:33 
Dann passt es ja. :D

Hab mich auch für StringGrid entschieden.

Ähm räusper hüstel :? aber so richtig viel einstellen
kann man da aber nicht oder?

Wie kann ich denn da die Spaltenbreite jeder einzelnen Spalte einstellen (auch die erste)?
Wie kann ich es komfortabel erreichen, dass bei Auswahl einer Zeile was passiert?


Hilfe wäre super
:wink:
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Di 31.10.06 13:53 
Die Spalten müssen im Programm eingestellt werden. Bei Hörstemeier gibt es ein TAliGrid, das 1000x besser ist. Dort kannst Du Alles einstellen.

_________________
Na denn, dann. Bis dann, denn.