Avoid a full table load on column auto resizing by using the new Column.coSmartResize option in VirtualTree 4.7.0 . "Smart resizing" only takes the cells in view to check the needed width, instead of all cells.

This commit is contained in:
Ansgar Becker
2008-08-27 15:40:15 +00:00
parent 007798c10a
commit 70969b2fc1

View File

@@ -1149,6 +1149,7 @@ begin
FDataGridResult.Columns[idx].Name := name;
col := DataGrid.Header.Columns.Add;
col.Text := name;
col.Options := col.Options + [coSmartResize];
if HiddenKeyCols.IndexOf(name) > -1 then col.Options := col.Options - [coVisible];
col.Width := prefDefaultColWidth;
if ViewDataPrevTable = SelectedTable then begin