Back to Devexpress

FilterPopupExcelEventArgs.DefaultFilterType Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-filterpopupexceleventargs.md

latest2.1 KB
Original Source

FilterPopupExcelEventArgs.DefaultFilterType Property

Gets or sets the operator selected by default in the Filters tab.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public CustomUIFilterType DefaultFilterType { get; set; }
vb
Public Property DefaultFilterType As CustomUIFilterType

Property Value

TypeDescription
DevExpress.Utils.Filtering.Internal.CustomUIFilterType

A DevExpress.Utils.Filtering.Internal.CustomUIFilterType enumeration value that specifies the operator used by default.

|

Remarks

The code snippet below shows how to change the default operator for numeric data from Equals to Does Not Equal.

csharp
private void gridView1_ShowFilterPopupExcel(object sender, DevExpress.XtraGrid.Views.Grid.FilterPopupExcelEventArgs e) {
    e.DefaultFilterType = DevExpress.Utils.Filtering.Internal.CustomUIFilterType.DoesNotEqual;
}
vb
Private Sub GridView1_ShowFilterPopupExcel(sender As Object, e As DevExpress.XtraGrid.Views.Grid.FilterPopupExcelEventArgs) Handles GridView1.ShowFilterPopupExcel
    e.DefaultFilterType = DevExpress.Utils.Filtering.Internal.CustomUIFilterType.DoesNotEqual
End Sub

See Also

FilterPopupExcelEventArgs Class

FilterPopupExcelEventArgs Members

DevExpress.XtraGrid.Views.Grid Namespace