Back to Devexpress

FilterControl.BeforeShowValueEditor Event

windowsforms-devexpress-dot-xtraeditors-dot-filtercontrol-d5ff428e.md

latest5.1 KB
Original Source

FilterControl.BeforeShowValueEditor Event

Fires before the Filter Control displays editors for operands.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DXCategory("Events")]
[EditorBrowsable(EditorBrowsableState.Never)]
public event ShowValueEditorEventHandler BeforeShowValueEditor
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DXCategory("Events")>
Public Event BeforeShowValueEditor As ShowValueEditorEventHandler

Event Data

The BeforeShowValueEditor event's data class is ShowValueEditorEventArgs. The following properties provide information specific to this event:

PropertyDescription
CurrentNodeGets the current node in the FilterControl’s tree of criteria.
CustomRepositoryItemAllows you to specify a custom editor to be opened instead of the default one, specified by the Editor property.
Editor
FocusedElementIndexGets the index of the current operand value.
OperandValueGets the current operand value.
OperationGets the operation of the current node.
PropertyNameGets the name of the current property (column/field). Inherited from BaseNodeEventArgs.
PropertyTypeGets the type of the current property (column/field). Inherited from BaseNodeEventArgs.

Remarks

This event is obsolete. Use the FilterControl.CustomValueEditor, FilterControl.CustomValueEditorForEditing, and FilterControl.ValueEditorShown events to assign editors to the Filter Control’s operands, and customize settings of the editors.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BeforeShowValueEditor event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-create-and-register-custom-filter-editor-functions/CS/DXApplication5/Main.cs#L24

csharp
//e.FilterEditor.PopupMenuShowing += OnPopupMenuShowing;
    e.FilterEditor.BeforeShowValueEditor += OnBeforeShowValueEditor;
}

how-to-create-and-register-custom-filter-editor-functions/VB/DXApplication5/Main.vb#L26

vb
'e.FilterEditor.PopupMenuShowing += OnPopupMenuShowing;
    AddHandler e.FilterEditor.BeforeShowValueEditor, AddressOf OnBeforeShowValueEditor
End Sub

See Also

DisposeValueEditor

BeforeCreateValueEditor

CustomValueEditor

CustomValueEditorForEditing

ValueEditorShown

FilterControl Class

FilterControl Members

DevExpress.XtraEditors Namespace