Explorar o código

Fix to Variable grid form lookups

Kenric Nugteren %!s(int64=2) %!d(string=hai) anos
pai
achega
9cd42ae72e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      inabox.wpf/DigitalForms/DynamicVariableGrid.cs

+ 1 - 1
inabox.wpf/DigitalForms/DynamicVariableGrid.cs

@@ -209,7 +209,6 @@ namespace InABox.DynamicGrid
                 editor.OnFormCustomiseEditor += (sender, items, column, editor) => Editor_OnFormCustomiseEditor(sender, variables, column, editor);
             }
 
-            editor.Items = new BaseObject[] { item };
             editor.OnDefineLookups += o =>
             {
                 var def = (o.EditorDefinition as ILookupEditor)!;
@@ -260,6 +259,7 @@ namespace InABox.DynamicGrid
                 }
                 return errors;
             };
+            editor.Items = new BaseObject[] { item };
             return editor.ShowDialog() == true;
         }