Home > Back-end >  Delphi Cxgrid master-slave control table is not automatically adjust from the table column widths, s
Delphi Cxgrid master-slave control table is not automatically adjust from the table column widths, s

Time:09-15


Var
I: Integer;
The begin
For I:=0 to cxGrid1DBTableView1. Do ColumnCount - 1
The begin
CxGrid1DBTableView1. Columns [I] ApplyBestFit ();
The end;
The end;
Under normal circumstances, the use of the code above to complete the Delphi Cxgrid column widths automatically processing, but the problem is coming, at the time of master-slave structure, Cxgrid does not automatically adjust the column width from the table, please teachers give directions, thank!!!!!!

  • Related