From cd7bb073a7fa8d147aa5a3439aaf64a5d455ff4b Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Wed, 27 Dec 2023 01:18:07 -0600 Subject: [PATCH] always reload --- Maui.DataGrid/DataGrid.xaml.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Maui.DataGrid/DataGrid.xaml.cs b/Maui.DataGrid/DataGrid.xaml.cs index e163bed..50f2de5 100644 --- a/Maui.DataGrid/DataGrid.xaml.cs +++ b/Maui.DataGrid/DataGrid.xaml.cs @@ -998,13 +998,9 @@ private void OnColumnsChanged(object? sender, NotifyCollectionChangedEventArgs e { // This will do a SortAndPaginate via the propertyChanged event of the SortedColumnIndexProperty SortedColumnIndex = newSortedColumnIndex; - - InitHeaderView(); - } - else - { - Reload(); } + + Reload(); } private void OnColumnSizeChanged(object? sender, EventArgs e) => Reload();