diff --git a/Maui.DataGrid/DataGridColumn.cs b/Maui.DataGrid/DataGridColumn.cs index 18e9c65..26089c4 100644 --- a/Maui.DataGrid/DataGridColumn.cs +++ b/Maui.DataGrid/DataGridColumn.cs @@ -50,9 +50,10 @@ public sealed class DataGridColumn : BindableObject, IDefinition BindablePropertyExtensions.Create( propertyChanged: (b, _, _) => { - if (b is DataGridColumn self) + if (b is DataGridColumn self && self.DataGrid is not null) { - self.DataGrid?.SortFilterAndPaginate(); + self.DataGrid.PageNumber = 1; + self.DataGrid.SortFilterAndPaginate(); } });