From d34475a6558c27b70df6f0fc363dcdc5ce39b8f4 Mon Sep 17 00:00:00 2001 From: chrigi28 Date: Mon, 25 Mar 2024 21:21:41 +0100 Subject: [PATCH] call Reload after DataGrid Loaded to fix initialization --- Maui.DataGrid/DataGrid.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Maui.DataGrid/DataGrid.xaml.cs b/Maui.DataGrid/DataGrid.xaml.cs index ef4e049..4002551 100644 --- a/Maui.DataGrid/DataGrid.xaml.cs +++ b/Maui.DataGrid/DataGrid.xaml.cs @@ -50,6 +50,11 @@ public DataGrid() { _collectionView.ItemsSource = InternalItems; } + + this.Loaded += (sender, e) => + { + Reload(); + }; } #endregion ctor