Skip to content

Commit

Permalink
remove redundant and incorrect code
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Dec 27, 2023
1 parent 28a1b05 commit 7820626
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Maui.DataGrid/DataGrid.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 7820626

Please sign in to comment.