Browse Source

Fixed error with DynamicVariableGrid not updating values

frogsoftware 1 year ago
parent
commit
8155a808be
1 changed files with 4 additions and 0 deletions
  1. 4 0
      inabox.wpf/DigitalForms/DynamicVariableGrid.cs

+ 4 - 0
inabox.wpf/DigitalForms/DynamicVariableGrid.cs

@@ -214,6 +214,10 @@ namespace InABox.DynamicGrid
             else
             {
                 editor.OnFormCustomiseEditor += (sender, items, column, editor) => Editor_OnFormCustomiseEditor(sender, variables, column, editor);
+                editor.OnEditorValueChanged += (sender, name, value) =>
+                {
+                    return DynamicGridUtils.UpdateEditorValue(new[] { item }, name, value);
+                };
             }
 
             editor.OnDefineLookups += o =>