Skip to main content
A newer version of this page is available. .
All docs
V22.2

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.v22.2.dll

NuGet Package: DevExpress.Win.Grid

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