|
@@ -12,6 +12,7 @@ using Avalonia.VisualTree;
|
|
|
using CommunityToolkit.Mvvm.Input;
|
|
|
using InABox.Core;
|
|
|
using System.Collections;
|
|
|
+using System.Collections.Specialized;
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
namespace InABox.Avalonia.Components;
|
|
@@ -141,7 +142,6 @@ public partial class AvaloniaDataGrid : UserControl, INotifyPropertyChanged
|
|
|
grid.Grid.CollectionView.CollectionChanged += grid.CollectionView_CollectionChanged;
|
|
|
}
|
|
|
grid.ItemsChanged();
|
|
|
- grid.UpdateSummaryRow();
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
@@ -177,6 +177,7 @@ public partial class AvaloniaDataGrid : UserControl, INotifyPropertyChanged
|
|
|
private void ItemsChanged()
|
|
|
{
|
|
|
ItemCount = (Grid.CollectionView as DataGridCollectionView)?.ItemCount ?? 0;
|
|
|
+ UpdateSummaryRow();
|
|
|
}
|
|
|
|
|
|
private void Columns_Changed(AvaloniaDataGridColumns columns)
|