Skip to main content

Example: Band.ApplyBestFit, TreeList.FullExpand

The following simple code shows how to apply best fit to a band

procedure <Form>.FormShow(Sender: TObject);
begin
  cxTreeList1.Bands[0].Caption.Text := 'Primary information about product';
 cxTreeList1.Bands[0].ApplyBestFit;
end;