From 7820626677d7440481866005c5836fb047f170d7 Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Wed, 27 Dec 2023 15:25:31 -0600 Subject: [PATCH] remove redundant and incorrect code --- Maui.DataGrid/DataGrid.xaml.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Maui.DataGrid/DataGrid.xaml.cs b/Maui.DataGrid/DataGrid.xaml.cs index 5b07bb6..d8025ea 100644 --- a/Maui.DataGrid/DataGrid.xaml.cs +++ b/Maui.DataGrid/DataGrid.xaml.cs @@ -1185,13 +1185,7 @@ internal void Reload() { lock (_reloadLock) { - // Check if PageSizeList contains the new PageSize value, so that it shows in the dropdown - if (!PageSizeList.Contains(PageSize)) - { - PageSizeList.Add(PageSize); - OnPropertyChanged(nameof(PageSizeList)); - OnPropertyChanged(nameof(PageSize)); - } + UpdatePageSizeList(); InitHeaderView();