diff --git a/Maui.DataGrid.Sample/MainPage.xaml b/Maui.DataGrid.Sample/MainPage.xaml
index fa17df0..fa0615d 100644
--- a/Maui.DataGrid.Sample/MainPage.xaml
+++ b/Maui.DataGrid.Sample/MainPage.xaml
@@ -16,7 +16,7 @@
-
+
+
+
+
diff --git a/Maui.DataGrid.Sample/ViewModels/MainViewModel.cs b/Maui.DataGrid.Sample/ViewModels/MainViewModel.cs
index 30b6191..830e702 100644
--- a/Maui.DataGrid.Sample/ViewModels/MainViewModel.cs
+++ b/Maui.DataGrid.Sample/ViewModels/MainViewModel.cs
@@ -15,6 +15,7 @@ public MainViewModel()
TeamColumnVisible = true;
WonColumnVisible = true;
HeaderBordersVisible = true;
+ FilteringEnabled = true;
PaginationEnabled = true;
RefreshingEnabled = true;
TeamColumnWidth = 70;
@@ -92,6 +93,12 @@ public int PageSize
set => SetValue(value);
}
+ public bool FilteringEnabled
+ {
+ get => GetValue();
+ set => SetValue(value);
+ }
+
public bool PaginationEnabled
{
get => GetValue();
diff --git a/Maui.DataGrid/CompatibilitySuppressions.xml b/Maui.DataGrid/CompatibilitySuppressions.xml
index 4b25ebc..7179397 100644
--- a/Maui.DataGrid/CompatibilitySuppressions.xml
+++ b/Maui.DataGrid/CompatibilitySuppressions.xml
@@ -8,4 +8,123 @@
lib/net8.0/Maui.DataGrid.dll
true
+
+ CP0002
+ F:Maui.DataGrid.DataGrid.FilteringEnabledProperty
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ F:Maui.DataGrid.DataGrid.HeaderFilterStyleProperty
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ F:Maui.DataGrid.DataGridColumn.FilteringEnabledProperty
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ F:Maui.DataGrid.DataGridColumn.FilterTextProperty
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ F:Maui.DataGrid.DataGridColumn.HeaderFilterStyleProperty
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGrid.add_FilterChanged(System.EventHandler{Microsoft.Maui.Controls.TextChangedEventArgs})
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGrid.get_FilteringEnabled
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGrid.get_HeaderFilterStyle
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGrid.remove_FilterChanged(System.EventHandler{Microsoft.Maui.Controls.TextChangedEventArgs})
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGrid.set_FilteringEnabled(System.Boolean)
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGrid.set_HeaderFilterStyle(Microsoft.Maui.Controls.Style)
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGridColumn.get_FilteringEnabled
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGridColumn.get_FilterText
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGridColumn.get_HeaderFilterStyle
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGridColumn.set_FilteringEnabled(System.Boolean)
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGridColumn.set_FilterText(System.String)
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
+
+ CP0002
+ M:Maui.DataGrid.DataGridColumn.set_HeaderFilterStyle(Microsoft.Maui.Controls.Style)
+ lib/net8.0/Maui.DataGrid.dll
+ lib/net8.0/Maui.DataGrid.dll
+ true
+
\ No newline at end of file
diff --git a/Maui.DataGrid/DataGrid.xaml b/Maui.DataGrid/DataGrid.xaml
index d84385d..75b7d09 100644
--- a/Maui.DataGrid/DataGrid.xaml
+++ b/Maui.DataGrid/DataGrid.xaml
@@ -10,13 +10,18 @@
-
+
+
+