Skip to main content
All docs
V23.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.v23.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