Skip to main content

FilterPopupExcelEventArgs.DefaultFilterType Property

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v22.1.dll

NuGet Package: DevExpress.Win.Grid

Declaration

public CustomUIFilterType DefaultFilterType { get; set; }

Property Value

Type Description
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.

private void gridView1_ShowFilterPopupExcel(object sender, DevExpress.XtraGrid.Views.Grid.FilterPopupExcelEventArgs e) {
    e.DefaultFilterType = DevExpress.Utils.Filtering.Internal.CustomUIFilterType.DoesNotEqual;
}
See Also