Back to Devexpress

DataControlBase.CriteriaConverter Property

wpf-devexpress-dot-xpf-dot-grid-dot-datacontrolbase-a842f37b.md

latest4.7 KB
Original Source

DataControlBase.CriteriaConverter Property

Gets or sets a converter that parses the GridControl‘s filter and returns a filter of a type used in your Model. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public IValueConverter CriteriaConverter { get; set; }
vb
Public Property CriteriaConverter As IValueConverter

Property Value

TypeDescription
IValueConverter

A filter criteria converter.

|

Remarks

The following properties return a filter of the Object type that can be cast to the CriteriaOperator type. If you specify the CriteriaConverter property, you can cast the filter these properties return to the type the filter converter returns:

PropertyCommand
FetchAsyncArgsBase.FilterInfiniteAsyncSource.FetchRowsCommand / PagedAsyncSource.FetchPageCommand
GetSummariesAsyncArgs.FilterInfiniteAsyncSource.GetTotalSummariesCommand / PagedAsyncSource.GetTotalSummariesCommand
GetUniqueValuesAsyncArgs.FilterInfiniteAsyncSource.GetUniqueValuesCommand / PagedAsyncSource.GetUniqueValuesCommand
UniqueValuesArgs.FilterDataControlBase.CustomUniqueValuesCommand

For information on how to allow users to filter rows in the GridControl bound to a virtual source, refer to the following help topic: Enable Filter Operations.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CriteriaConverter property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-bind-to-grpc/CS/InfiniteAsyncSource.GRPC/MainWindow.xaml#L21

xml
<Grid>
      <dxg:GridControl CriteriaConverter="{local:IssueFilterConverter}">
    <dxg:GridControl.ItemsSource>

wpf-data-grid-bind-to-pagedasyncsource/CS/PagedAsyncSourceMVVMSample/MainWindow.xaml#L16

xml
<Grid>
    <dxg:GridControl CriteriaConverter="{local:IssueFilterConverter}">
        <dxg:GridControl.ItemsSource>

wpf-data-grid-bind-to-infiniteasyncsource/CS/InfiniteAsyncSourceMVVMSample/MainWindow.xaml#L16

xml
<Grid>
    <dxg:GridControl CriteriaConverter="{local:IssueFilterConverter}">
        <dxg:GridControl.InputBindings>

See Also

DataControlBase Class

DataControlBase Members

DevExpress.Xpf.Grid Namespace