Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FilterControl.ValueEditorShown Event

Fires after an operand’s editor has been displayed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.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 snippet handles the FilterControl.ValueEditorShown event to change the foreground color of operand editors in the Data Grid’s embedded Filter Control.

The ColumnView.FilterEditorCreated event is used to subscribe to the ValueEditorShown 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