From 56989299d0a66793cd71dd839eb3d29563cebb1d Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Tue, 23 Jan 2024 21:58:54 -0600 Subject: [PATCH] ignore string case when removing columns in sample --- Maui.DataGrid.Sample/SettingsPopup.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Maui.DataGrid.Sample/SettingsPopup.xaml.cs b/Maui.DataGrid.Sample/SettingsPopup.xaml.cs index 792cbb5..b1a3807 100644 --- a/Maui.DataGrid.Sample/SettingsPopup.xaml.cs +++ b/Maui.DataGrid.Sample/SettingsPopup.xaml.cs @@ -30,7 +30,7 @@ private async void OnRemoveColumn(object sender, EventArgs e) { var columnTitle = await Shell.Current.DisplayPromptAsync("Remove column", "Which column should be removed?"); - var columnToRemove = _viewModel.Columns.FirstOrDefault(c => c.Title == columnTitle); + var columnToRemove = _viewModel.Columns.FirstOrDefault(c => c.Title.Equals(columnTitle, StringComparison.OrdinalIgnoreCase)); if (columnToRemove == null) {