screen =

Imgur

how to remove spaces?

tringgrid3.Canvas.Brush.Color:=clGreen; stringgrid3.Canvas.FillRect(Rect); StringGrid3.ColWidths[1]:=Image1.Picture.Width; StringGrid3.RowHeights[1]:=Image1.Picture.Height; StringGrid3.Canvas.StretchDraw(Rect, Image1.Picture.Graphic); 
  • one
    Why do beginner dolphists love to rape a StringGrid so much? Why not display your sea battle in the Image or on the form? It is much more convenient. - Nofate
  • especially since there is a drawgrid. - KoVadim

1 answer 1

Select the stringgrid, find the Options property in the object inspector, click on the plus sign (or arrow). In the drop-down list of options, find goVertLine and goHorzLine and set it to false.

If you need a code, then so

 StringGrid1.Options:=StringGrid1.Options-[goVertLine, goHorzLine];