Back to Devexpress

FilterControl.QueryCustomFunctions Event

windowsforms-devexpress-dot-xtraeditors-dot-filtercontrol-698a4bc1.md

latest2.1 KB
Original Source

FilterControl.QueryCustomFunctions Event

Allows you to add custom-function-based filters (for example, ‘discount is more than 15%’) to Excel-style pop-up filter menus and/or the filter editor.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event QueryCustomFunctionsEventHandler QueryCustomFunctions
vb
<DXCategory("Events")>
Public Event QueryCustomFunctions As QueryCustomFunctionsEventHandler

Event Data

The QueryCustomFunctions event's data class is DevExpress.XtraEditors.Filtering.CustomFunctionEventArgs.

Remarks

To create a custom filter function (for example, ‘discount is more than 15%’), and add this function to Excel-style pop-up filter menus and/or the filter editor, do the following:

  • implement a custom function
  • register the function
  • add the function to pop-up filter menus and the filter editor in a QueryCustomFunctions event handler

See Also

Custom Function Based Filters

ShowCustomFunctions

FilterControl Class

FilterControl Members

DevExpress.XtraEditors Namespace