Autor Beitrag
Pf@nne
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: So 07.12.03 21:24 
Hallo,

wie schreibe ich Daten in eine listbox mit mehr als einer spalte?`
ich schaffe es nur daten in die erste spalte zu schreiben.

danke.....
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 07.12.03 21:32 
Hallo!

Das liegt daran, dass eine Listbox auch nur eine Spalte hat! :-) Was Du brauchst, ist eine ListView!

MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Pf@nne Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: So 07.12.03 21:44 
hmmmmm...

wieso hat denn meine listbox die eigenschaft "Columns"??

wenn ich diese auf z.b. 5 stelle, sind auch 5 splaten vorhanden??
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 07.12.03 21:56 
Hallo!

Die Eigenschaft Columns ist wie der Spaltendruck in einer Zeitung! Die Listbox macht es so:

ausblenden Quelltext
1:
2:
3:
Eintrag1   Eintrag4
Eintrag2   Eintrag5
Eintrag3   Eintrag6


Was Du möchtest ist doch eher
ausblenden Quelltext
1:
2:
3:
Eintrag1.1   Eintrag2.1
Eintrag1.2   Eintrag2.2
Eintrag1.3   Eintrag2.3


MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Pf@nne Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: So 07.12.03 22:21 
ahhh,

so langsam kommt licht ins dunkel.

hast du ein kurzes beispiel für mich, ich wäre dir sehr dankbar.
ich habe bisher nur in vba rumgemacht.

da gestaltet sich das ganze etwas einfacher.

danke....... :D
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 08.12.03 09:49 
Warum benutzt du jetzt keine TListView?

Gruß
Tino