Creating or Destroying of Multiple Controls at Runtime
SuspendLayouts;
try
for I := 1 to 20 do
begin
B := TUniDBGrid.Create(Self); // create 20 grids dynamically
B.DataSource := DataSource1;
B.Parent := UniContainerPanel1;
...
end;
finally
ResumeLayouts;
end;