Back to Devexpress

TreeList.ShowFilterPopupExcel Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-cc068cff.md

latest2.3 KB
Original Source

TreeList.ShowFilterPopupExcel Event

Allows you to hide specific filter conditions from the Filters tab of the Excel-style Drop-down Filter.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DXCategory("Behavior")]
public event FilterPopupExcelEventHandler ShowFilterPopupExcel
vb
<DXCategory("Behavior")>
Public Event ShowFilterPopupExcel As FilterPopupExcelEventHandler

Event Data

The ShowFilterPopupExcel event's data class is DevExpress.XtraTreeList.FilterPopupExcelEventArgs.

Remarks

The following code hides Null and Not Null filter conditions:

csharp
void treeList1_ShowFilterPopupExcel(object sender, FilterPopupExcelEventArgs e) {
    e.ShowNulls = false;
}
vb
Private Sub treeList1_ShowFilterPopupExcel(ByVal sender As Object, ByVal e As FilterPopupExcelEventArgs)
    e.ShowNulls = False
End Sub

The e.HideFilter method allows you to hide specific conditions.

Instead of the ShowFilterPopupExcel event, you can also use related static properties accessible through the DevExpress.Utils.Filtering.ExcelFilterOptions.Default field. These properties allow you to hide filter conditions for all Tree List controls in the application:

csharp
ExcelFilterOptions.Default.ShowNulls = false;
vb
ExcelFilterOptions.Default.ShowNulls = False

See Also

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace