Autor Beitrag
spongeBHV
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Di 03.10.06 20:57 
hi, muss eine projektarbeit abgeben und möchte dazu die auf TForm1 eingebrachte StringGrid benutzen.
als nächstes vollte ich die Tabellen-und Zeilenköpfe beschriften, was aber nicht funktionierte, es wird zwar kein Fehler angezeigt, aber die Zeilen und Dpalten bleiben trotzdem leer, wenn man das Programm startet. Im Quelltext wurde der StringGrid erkannt, daran kann es also nicht liegen. Als procedure verwende ich FormCreate (Sender: TObject); hier der von mir verwendete Quelltext für die Spaltenbeschriftung

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
procedure TForm1.FormCreate (Sender: TObject);
begin
     PolsterTabelle.Cells[0, 1] := '1. Kurve';
     PolsterTabelle.Cells[0, 2] := '2. Kurve';
     PolsterTabelle.Cells[0, 3] := '3. Kurve';
     PolsterTabelle.Cells[0, 4] := '4. Kurve';
     PolsterTabelle.Cells[0, 5] := '5. Kurve';
     PolsterTabelle.Cells[0, 6] := '6. Kurve';
     PolsterTabelle.Cells[0, 7] := '7. Kurve';
     PolsterTabelle.Cells[0, 8] := '8. Kurve';
     PolsterTabelle.Cells[0, 9] := '9. Kurve';
     PolsterTabelle.Cells[0, 10] := '10. Kurve';
end;


Kann mir jemad helfen, woran es liegen kann, dass da nichts steht?

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt
Moderiert von user profile iconraziel: Topic aus Sonstiges (Delphi) verschoben am Mi 04.10.2006 um 00:22
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 03.10.06 21:05 
Du hast auch Spalte und Spalte und Zeile vertauscht. Welcher wert hat .ColCount? Welcher .FixedCols ?

_________________
Markus Kinzler.
spongeBHV Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Di 03.10.06 21:10 
die erste spalte und erste zeile sind fixed. diese sind ja auch grau hinterlegt und diese will ich beschriftet haben. wenn das programm läuft, kann man diese ja nicht mehr verändern und so soll das sein.
zeile und spalte spielen ja auch gar keine rolle, weil ja trotzdem alles leer bleibt.
colcount hat den wert 7 und fixedcols ist 1
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 03.10.06 21:18 
Und wie sieht es mit .RowCount and .FixedRows aus?

_________________
Markus Kinzler.
spongeBHV Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Di 03.10.06 21:20 
rowcount hat den wert 11 und fixedrows ist auch 1