Novice, please help solve the stringgrid input data problem. lazarus / 21-General ---------------------------------------------------------------------- jianwt · 2023-03-02 09:45 Novice, please help solve the stringgrid input data problem. To input data with a stringgrid, a column of cells has more than one row of data. I saw that TComboBox can be embedded in the official demo, I would like to ask whether TMEMO can be embedded into a certain column, so that cells can input multiple rows of data, novice, please help, I just want a column of cells can input multiple rows of data, or other solutions can also work, thank you!! ---------------------------------------------------------------------- Blaazen · 2023-03-02 11:20 Your code  basically works, you just need to increase row height (i.e. DefaultRowHeight property) to see more lines. If you want also multilines to be displayd after editing, you need to add unit Graphics to uses and add this event: 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 TForm1.StringGrid1PrepareCanvas(Sender: TObject; aCol, aRow: Integer; aState: TGridDrawState);var aTextStyle: TTextStyle;begin  aTextStyle:=StringGrid1.Canvas.TextStyle;  aTextStyle.SingleLine:=False;  StringGrid1.Canvas.TextStyle:=aTextStyle;end; ---------------------------------------------------------------------- jianwt · 2023-03-02 11:51 Blaazen, thanks, how to fix the problem where the height and width of memo1 don't vary when dragging stringgrid column width and row height. ---------------------------------------------------------------------- Blaazen · 2023-03-02 18:13 You need to implement this event: 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 TForm1.StringGrid1HeaderSized(Sender: TObject; IsColumn: Boolean; Index: Integer);begin  if IsColumn and (Index=3) and Memo1.Visible then    begin      Memo1.BoundsRect:=StringGrid1.CellRect(Index, StringGrid1.Row);      Memo1.SetFocus;  //if you want    end;end; ---------------------------------------------------------------------- jianwt · 2023-03-03 04:30 @Blaazen, thanks