Skip to content

Commit

Permalink
set PropertyName for new sample columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Jan 16, 2024
1 parent 1068da7 commit 1fac125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Maui.DataGrid.Sample/SettingsPopup.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) });
}
}

Expand Down

0 comments on commit 1fac125

Please sign in to comment.