Skip to main content
All docs
V24.2

FilterControl.CustomValueEditorForEditing Event

Allows you to specify a custom editor used to edit an operand. Handle the FilterControl.CustomValueEditor event to specify an editor used to display and edit the operand.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DXCategory("Events")]
public event EventHandler<CustomValueEditorArgs> CustomValueEditorForEditing

Event Data

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

Property Description
ElementIndex
Node
Operation
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.
RepositoryItem
Value

Remarks

The FilterControl.CustomValueEditor event allows you to assign a custom editor to a value operand. This editor is used to display and edit the operand.

Handle the CustomValueEditorForEditing event to specify an editor that is only used to edit an operand. To assign an editor to an operand, create a corresponding RepositoryItem descendant, and set the RepositoryItem event parameter.

Example

readonly RepositoryItemCalcEdit calcEdit = new RepositoryItemCalcEdit();

private void gridView1_FilterEditorCreated(object sender, FilterControlEventArgs e) {
    e.FilterEditor.CustomValueEditorForEditing += FilterEditor_CustomValueEditorForEditing;
}
private void FilterEditor_CustomValueEditorForEditing(object sender, CustomValueEditorArgs e) {
    if (e.Node.FirstOperand.PropertyName != "Payment") return;
    e.RepositoryItem = calcEdit;
}
See Also