Autofit rows


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);
  advstringgrid1.RowCount := 40;
  AdvStringGrid1.IntegralHeight := true;

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