Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

CustomColumnDisplayTextEventArgs.IsForFilter Property

Gets a value that specifies whether the CustomColumnDisplayText event is raised for the Filter Panel.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool IsForFilter { get; }

#Property Value

Type Description
Boolean

true if the CustomColumnDisplayText event is raised for the Filter Panel; otherwise, false.

#Remarks

private void gridView1_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) {
    if(e.IsForFilter)
        e.DisplayText = ((int)e.Value).ToString() + " `custom text`";
}

The screenshot below shows the result:

CustomColumnDisplayText - WinForms Data Grid

See Also