10197 : I want the height”s of all the rows to change

Question

If I change the height of one row (may be the 1st one or maybe I select all
rows and the increase the height) I want the height’s of all the rows to
get changed accordingly. How do I do this one.

Answer

You will have to iterate all rows and set the height to each one.
This code doubles the row height on the selected row:
if phGantX1.CurrentDataEntityTree<>nil then
begin
  y:=(phGantX1.CurrentDataEntityTree as IphDataEntity_Tree2).GridRowIndex;
  phGantX1.SetRowHeightGrid(y,phGantX1.GetRowHeightGrid(y)*2);
end;

Leave a Reply