Skip to main content
All docs
V25.1
  • 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.1.Core.dll

    NuGet Package: DevExpress.Wpf.Grid.Core

    Declaration

    public IValueConverter CriteriaConverter { get; set; }

    Property Value

    Type Description
    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:

    Property Command
    FetchAsyncArgsBase.Filter InfiniteAsyncSource.FetchRowsCommand / PagedAsyncSource.FetchPageCommand
    GetSummariesAsyncArgs.Filter InfiniteAsyncSource.GetTotalSummariesCommand / PagedAsyncSource.GetTotalSummariesCommand
    GetUniqueValuesAsyncArgs.Filter InfiniteAsyncSource.GetUniqueValuesCommand / PagedAsyncSource.GetUniqueValuesCommand
    UniqueValuesArgs.Filter DataControlBase.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.

    See Also