Autor Beitrag
ghost_assassin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 18



BeitragVerfasst: Sa 14.01.06 23:49 
also ich hab ein stringgrid mit einer gefixden spalte. da will ich einfach einen text die ganze zeit stehen haben. soll sich nicht ändern.

kann man einmal im stringrid.create machen. also das ich da dann den text eintragen lasse.

ich wollte aber mal wissen ob das schon vorher geht irgendwie?? also das ich das schon in delphi selber sehe, hab mich grad dumm und dusselig im oi gesucht

Moderiert von user profile iconTino: Überflüssige Zeilenumbrüche entfernt.
ghost_assassin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 18



BeitragVerfasst: So 15.01.06 22:12 
ich hab nochmals gesucht, bin aber immer noch nicht fündig geworden...

wenns nicht geht, kurz eine antwort, dauert keine 2 mins und ich (und hoffentlich viele andere) sind schlauer, danke.

Moderiert von user profile iconTino: Überflüssige Zeilenumbrüche entfernt.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 15.01.06 22:28 
Hallo,

Die Standard-StringGrid kann das nicht,
eventuell findest Du eine Fremdkomponente die das implementiert hat.

Im Falle von z.B feststehenden Spaltenüberschriften nutze ich folgenden Code im OnCreate der Form,
der ist leicht an Änderungen anpassbar, beispielsweise:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.FormCreate(Sender: TObject);
const GridCols : array [0..4of String =
                 ('Nr.','Name','Vorname','PLZ','Ort');
var z : Integer;
begin
    for z := 0 to 4 do
      StringGrid1.Cells[z,0] := GridCols[z];
end;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )