Explorar o código

Fixed problem with CoreTableGrid

Kenric Nugteren hai 4 meses
pai
achega
ee4b31362f
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      inabox.wpf/DynamicGrid/Grids/CoreTableGrid.cs

+ 9 - 0
inabox.wpf/DynamicGrid/Grids/CoreTableGrid.cs

@@ -239,5 +239,14 @@ public class CoreTableGrid : BaseDynamicGrid
         action(Table, null);
     }
 
+    public override void OnItemSourceChanged(object value)
+    {
+        if(value is CoreTable table)
+        {
+            Table = table;
+            Refresh(true, true);
+        }
+    }
+
     #endregion
 }