procedure TForm8.Button1Click(Sender: TObject);
var I: Integer;
begin
GridHelper1.ClearItems;
for I := 0 to 5 do
begin
GridHelper1.IncRow;
GridHelper1.Cell[I, 0]:= 'sayi ' + I.ToString;
GridHelper1.Cell[I, 1]:= 'sayi ' + I.ToString;
GridHelper1.Cell[I, 2]:= 'sayi ' + I.ToString;
GridHelper1.Cell[I, 3]:= 'sayi ' + I.ToString;
GridHelper1.Cell[I, 4]:= 'sayi ' + I.ToString;
GridHelper1.Cell[I, 5]:= 'Y';
end;
end;
procedure TForm8.Button2Click(Sender: TObject);
var I: Integer;
begin
GridHelper1.ClearItems;
for I := 0 to 5 do
begin
GridHelper1.IncRow;
GridHelper1.AddValue[0]:= 'sayi ' + I.ToString;
GridHelper1.AddValue[1]:= 'sayi ' + I.ToString;
GridHelper1.AddValue[2]:= 'sayi ' + I.ToString;
GridHelper1.AddValue[3]:= 'sayi ' + I.ToString;
GridHelper1.AddValue[4]:= 'sayi ' + I.ToString;
GridHelper1.AddValue[5]:= 'Y';
end;
end;
Head over and download the full source code of this TGridHelper component for Delphi Firemonkey.