diff --git a/src/Avalonia.Controls/Grid.cs b/src/Avalonia.Controls/Grid.cs
index ef202178df..23c1cd4794 100644
--- a/src/Avalonia.Controls/Grid.cs
+++ b/src/Avalonia.Controls/Grid.cs
@@ -6,6 +6,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
+using System.Collections.Specialized;
using System.Diagnostics;
using System.Linq;
using System.Threading;
@@ -571,6 +572,15 @@ namespace Avalonia.Controls
return (arrangeSize);
}
+ ///
+ ///
+ ///
+ protected override void ChildrenChanged(object sender, NotifyCollectionChangedEventArgs e)
+ {
+ CellsStructureDirty = true;
+ base.ChildrenChanged(sender, e);
+ }
+
///
/// Invalidates grid caches and makes the grid dirty for measure.
///