Skip to main content
A newer version of this page is available.

WebPrefilter.CriteriaString Property

Gets or sets the Prefilter‘s filter string.

Namespace: DevExpress.Web.ASPxPivotGrid.Data

Assembly: DevExpress.Web.ASPxPivotGrid.v18.2.dll

Declaration

[DefaultValue("")]
public string CriteriaString { get; set; }

Property Value

Type Default Description
String String.Empty

A String value that specifies the Prefilter‘s filter string.

Remarks

The Prefilter‘s expression can also be specified via the WebPrefilter.Criteria property.


protected void Page_Load(object sender, EventArgs e) {
  if (!IsPostBack && !IsCallback)
    //ASPxPivotGrid1.Prefilter.Criteria =
    // CriteriaOperator.Parse("fieldOrderYear = 1995 AND fieldOrderQuarter between (2, 4)");
    ASPxPivotGrid1.Prefilter.CriteriaString =
        "fieldOrderYear = 1995 AND fieldOrderQuarter between (2, 4)";
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CriteriaString 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