Posted by Lee Hallin p12462 on January 27, 2009
Hi all,procedure TForm1.Button3Click(Sender: TObject);
Var
i,H: Integer;
Begin
H := 0;
For i := 0 to (StringGrid1.RowCount - 1) do Begin
H := H + StringGrid1.Canvas.TextHeight(StringGrid1.Cells[0,i]);
End;
StringGrid1.Height := H;
End; { Button3Click }
Thanks..Lee
Related articles
Follow Ups
Post a Followup
DelphiLand Club members: enter your Membership password.
Guests can get a Forum Guest password by subscribing to the DelphiLand Newsletter.