Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    PivotGridControl.CustomFilterDisplayText Event

    Enables custom text to be displayed in the Filter Panel.

    Namespace: DevExpress.XtraPivotGrid

    Assembly: DevExpress.XtraPivotGrid.v25.1.dll

    NuGet Package: DevExpress.Win.PivotGrid

    #Declaration

    public event ConvertEditValueEventHandler CustomFilterDisplayText

    #Event Data

    The CustomFilterDisplayText event's data class is ConvertEditValueEventArgs. The following properties provide information specific to this event:

    Property Description
    Handled Gets or sets a value specifying whether default edit value conversion/formatting is required.
    Value Gets or sets either the edit or the display value of an editor.

    #Remarks

    In the following code snippet the CustomFilterDisplayText event is handled to display the “Filter is applied” string in the filter panel instead of the criteria string:

    private void pivotGridControl1_CustomFilterDisplayText(object sender, DevExpress.XtraEditors.Controls.ConvertEditValueEventArgs e) {
        if(e.Value != null) {
            e.Value = "Filter is applied";
        } else {
            e.Value = e.Value.ToString();
        }
        e.Handled = true;
    }
    
    See Also