How to copy row from stringgrid2 to stringgrid1? lazarus / 31-LCL ---------------------------------------------------------------------- greertr · 2016-11-25 18:54 this started out as a question...but I found a solution for the subject question... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm2.Button5Click(Sender: TObject);begin  //Transfer flight data from the input grid to the log grid  StringGrid1.RowCount:=StringGrid1.RowCount+1;  //inster row into stringgrid1  stringgrid1.rows[stringgrid1.rowcount-1] := stringgrid2.rows[1];end; Hope this helps someone. Regards Greer T. ---------------------------------------------------------------------- paweld · 2016-11-25 19:29 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm2.Button5Click(Sender: TObject);var   i: Integer;begin  //Transfer flight data from the input grid to the log grid  StringGrid1.RowCount:=StringGrid1.RowCount+1;  //inster row into stringgrid1  for i:=0 to StringGrid2.ColCount-1 do  stringgrid1.cells[i, StringGrid1.RowCount-1] := stringgrid2.Cells[i,1];end; ---------------------------------------------------------------------- greertr · 2016-11-25 21:06 thx paweld