diff --git a/Maui.DataGrid.Sample/MainPage.xaml b/Maui.DataGrid.Sample/MainPage.xaml
index 747aa5a..605dc44 100644
--- a/Maui.DataGrid.Sample/MainPage.xaml
+++ b/Maui.DataGrid.Sample/MainPage.xaml
@@ -16,8 +16,7 @@
-
-
+
diff --git a/Maui.DataGrid.Sample/MainPage.xaml.cs b/Maui.DataGrid.Sample/MainPage.xaml.cs
index c5d2651..f355f6b 100644
--- a/Maui.DataGrid.Sample/MainPage.xaml.cs
+++ b/Maui.DataGrid.Sample/MainPage.xaml.cs
@@ -16,4 +16,14 @@ private void OnAddColumn(object sender, EventArgs e)
{
_dataGrid1.Columns.Add(new DataGridColumn() { Title = "Test", Width = new(100) });
}
+
+ private void OnRemoveTeamColumn(object sender, EventArgs e)
+ {
+ var teamColumn = _dataGrid1.Columns.FirstOrDefault(c => c.Title == "Team");
+
+ if (teamColumn != null)
+ {
+ _ = _dataGrid1.Columns.Remove(teamColumn);
+ }
+ }
}