Back to Devexpress

CustomColumnDisplayTextEventArgs.IsForFilter Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-customcolumndisplaytexteventargs-8d73e396.md

latest2.5 KB
Original Source

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

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

Declaration

csharp
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool IsForFilter { get; }
vb
<EditorBrowsable(EditorBrowsableState.Advanced)>
Public ReadOnly Property IsForFilter As Boolean

Property Value

TypeDescription
Boolean

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

|

Remarks

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

Private Sub gridView1_CustomColumnDisplayText(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs)
    If e.IsForFilter Then
        e.DisplayText = CInt(Math.Truncate(e.Value)).ToString() & " `custom text`"
    End If
End Sub

The screenshot below shows the result:

See Also

CustomColumnDisplayTextEventArgs Class

CustomColumnDisplayTextEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace