Autofit rows

Hi 


how auto fit all rows in a grid depending of a grid heigth. I dont want to have last visible row cutted on a form !

Thank u

I assume it is grid.IntegralHeight = true you are looking for.

good but last row is always cut ...

How can this be reproduced?
I retested this on a default grid with:


procedure TForm1.FormCreate(Sender: TObject);
begin
  advstringgrid1.RowCount := 40;
  advstringgrid1.LinearFill(False);
  AdvStringGrid1.IntegralHeight := true;
end;

and this works as expected. The last row is always integrally displayed.