Skip to main content
All docs
V24.1

FilterControl.ValueEditorShown Event

Fires after an operand’s editor has been displayed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event EventHandler<ValueEditorEventArgs> ValueEditorShown

Event Data

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

Property Description
Editor Gets the currently processed editor.
PropertyName Gets the name of the current property (column/field). Inherited from BaseNodeEventArgs.
PropertyType Gets the type of the current property (column/field). Inherited from BaseNodeEventArgs.

Remarks

The ValueEditorShown event fires after the editor used to edit a value operand is invoked. Handle this event to customize the editor’s settings.

Example

The following code handles the FilterControl.ValueEditorShown event to change the foreground color of operand editors in Data Grid’s embedded Filter Control.

The ColumnView.FilterEditorCreated event is used to subscribe to the FilterControl.BeforeShowValueEditor event.

FilterControl - ValueEditorShown

using DevExpress.XtraEditors.Filtering;
using DevExpress.XtraGrid.Views.Base;

private void gridView1_FilterEditorCreated(object sender, FilterControlEventArgs e) {
    e.FilterEditor.ValueEditorShown += FilterEditor_ValueEditorShown;
}

private void FilterEditor_ValueEditorShown(object sender, ValueEditorEventArgs e) {
    e.Editor.Properties.Appearance.ForeColor = Color.Red;
}
See Also