diff --git a/src/Bind4D.Component.DBGrid.pas b/src/Bind4D.Component.DBGrid.pas index bddd6a8..9f3e407 100644 --- a/src/Bind4D.Component.DBGrid.pas +++ b/src/Bind4D.Component.DBGrid.pas @@ -100,6 +100,8 @@ function TBind4DComponentDBGrid.AdjusteResponsivity: iBind4DComponent; aTotalWidthAttr := 0; aCountTotalColumnsVisible := 0; + if not Assigned(FComponent.Columns) then exit; + for I := 0 to Pred(FComponent.Columns.Count) do FComponent.Columns[i].Width := 100;