Einzelnen Beitrag anzeigen

aaron

Registriert seit: 18. Feb 2003
202 Beiträge
 
Delphi 2007 Professional
 
#5

Re: Ausgewählte Zeilen e. Stringgrid's i.e. anderes Stringg

  Alt 24. Mär 2008, 11:39
Hallo
meinst du so?
Delphi-Quellcode:
procedure Tform1.Button2Click(Sender: TObject);
var
  i, x2: integer;
begin
for i := 1 to StringGrid1.RowCount -1 do
    for x2 := 1 to StringGrid1.ColCount-1 do
  begin
    if stringgrid1.GetCheckBoxState(0,i,state) then
    begin
    if state = true then
 StringGrid2.Cells[i - 1, x2 - 1]:=StringGrid1.Cells[x2 - 1, i - 1]; // ???
end;
end;

end;
Falls ja, wie bekomme ich den Inhalt in das zweite Stringgrid?
Ich denke ich habe ein Brett vorm Kopf, sitze schon seit Stunden an diesem Problem. ^^

Aaron
  Mit Zitat antworten Zitat