From 1fac1253f4ce872d57c3fba99705b9afc4339dd1 Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Tue, 16 Jan 2024 13:35:09 -0600 Subject: [PATCH] set PropertyName for new sample columns --- 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 a707687..792cbb5 100644 --- a/Maui.DataGrid.Sample/SettingsPopup.xaml.cs +++ b/Maui.DataGrid.Sample/SettingsPopup.xaml.cs @@ -22,7 +22,7 @@ private async void OnAddColumn(object sender, EventArgs e) } else { - _viewModel.Columns.Add(new DataGridColumn() { Title = newColumnTitle, Width = new(100) }); + _viewModel.Columns.Add(new DataGridColumn() { Title = newColumnTitle, PropertyName = newColumnTitle, Width = new(100) }); } }