From 891ced7b42c5fb872f9347f67c7c1152260e6f41 Mon Sep 17 00:00:00 2001 From: Thulio Bittencourt Date: Thu, 15 Apr 2021 10:42:42 -0300 Subject: [PATCH] Update Bind4D.Component.DBGrid.pas --- src/Bind4D.Component.DBGrid.pas | 2 ++ 1 file changed, 2 insertions(+) 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;