Autor Beitrag
JWI
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mi 15.09.04 12:00 
Tag zusammen,

füllen ein stringrid mit Werten.
Nachdem der Benutzer eine Wert über ein edit Felder eingegeben hat,
soll der Wert im stringgrid ersetzt werden.

Das geänderten stringgrid wird jedoch nicht angezeigt,
Ausnahme ist die letzte Column,Row.

Habe es schon mit Refresh und/oder Application.ProcessMessages probiert,
ohne Erfolg.

Was mache ich falsch ?
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 15.09.04 12:09 
Tach,

zeich mal Deinen Source, wo Du dem StringGrid die Daten zuweist.
JWI Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mi 15.09.04 12:28 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
for wind:=1 to wmax do begin
        if wparm4[wind] <> '' then begin
           zmax:=zmax+1;
           zparm4[zmax]:=wparm4[wind];
           zparm5[zmax]:=wparm5[wind];
           stringgrid1.RowCount:=zmax+1;
           stringgrid1.Cells[0,zmax]:=inttostr(zmax);
           stringgrid1.Cells[1,zmax]:=wparm1;
           stringgrid1.Cells[2,zmax]:=wparm2;
           stringgrid1.Cells[3,zmax]:=wparm3;
           stringgrid1.Cells[4,zmax]:=zparm4[zmax];
           listbox5.Items.add (wparm4[wind]);
           stringgrid1.Cells[5,wmax]:=zparm5[zmax];
        end;
end;
stringgrid1.Refresh;

Die (vorher) gelöschte listbox5 wird aktualisiert !
Kann ich eine stringgrid auch löschen ("clear")
JWI Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mi 15.09.04 13:06 
Sorry, das Problem hat sich erledigt.
Das Array wurde falsch indiziert.