Browse Source

Fixed problem with CoreTableGrid

Kenric Nugteren 5 tháng trước cách đây
mục cha
commit
ee4b31362f
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  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
 }