Back to Devexpress

DataGridView.FilterString Property

maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-c8fbea9a.md

latest1.9 KB
Original Source

DataGridView.FilterString Property

Gets or sets the grid’s filter expression string. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public string FilterString { get; set; }

Property Value

TypeDescription
String

The filter criteria applied to grid data.

|

Remarks

You can use the FilterString property to filter data in the grid against single or multiple columns. When a filter is applied, the grid displays a subset of data records that meet the specified criteria. Use the Criteria Language Syntax to form filter strings.

xaml
<dxg:DataGridView ItemsSource="{Binding Orders}"  
                  FilterString="Contains([Product.Name], 'Choco')">
    <!-- ... -->
</dxg:DataGridView>

Note that the FilterString and FilterExpression properties are dependent. If you update one of them, the other changes as well.

To get a string that specifies the grid’s current filter, use the DataGridView.ActualFilterString property.

To clear the grid’s filter, use the DataGridView.ClearFilter method.

See Also

How to Filter Rows in DevExpress Data Grid for .NET MAUI

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace