From eae00db67f5788d099a8823d9795e98896768a78 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Mon, 8 Nov 2021 16:25:30 +0100 Subject: [PATCH] Fix intial lookup datasource being empty --- app/DD_PM_WINDREAM/ClassControlCreator.vb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/DD_PM_WINDREAM/ClassControlCreator.vb b/app/DD_PM_WINDREAM/ClassControlCreator.vb index d1f2643..72ceda5 100644 --- a/app/DD_PM_WINDREAM/ClassControlCreator.vb +++ b/app/DD_PM_WINDREAM/ClassControlCreator.vb @@ -608,6 +608,7 @@ Public Class ClassControlCreator End If Next Next + Catch ex As Exception Logger.Error(ex) Finally @@ -658,6 +659,9 @@ Public Class ClassControlCreator oView2.UpdateCurrentRow() End Sub + ' 08.11.2021: Fix editor being empty on first open + oView.FocusInvalidRow() + Return oControl End Function @@ -916,8 +920,7 @@ Public Class ClassControlCreator If Not IsDBNull(oSqlStatement) And Not IsDBNull(oSqlStatement) Then oSqlStatement = clsPatterns.ReplaceAllValues(oSqlStatement, pControlPanel, True) - ClassControlCreator.GridTables_CacheDatatableForColumn(oControlId, oColumnName, oSqlStatement, oConnectionId, oAdvancedLookup) - + GridTables_CacheDatatableForColumn(oControlId, oColumnName, oSqlStatement, oConnectionId, oAdvancedLookup) ' === Block to force setting the editor for GridColumns For Each oControl As Control In pControlPanel.Controls