From 70969b2fc11bb433db07175ec8598e3684b23ded Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Wed, 27 Aug 2008 15:40:15 +0000 Subject: [PATCH] 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. --- source/childwin.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/source/childwin.pas b/source/childwin.pas index e192b386..d72e4750 100644 --- a/source/childwin.pas +++ b/source/childwin.pas @@ -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