Skip to main content

ProcessEditorActivationActionEventArgs.RaiseEventAgain Property

Gets or sets whether the event is raised again to make the focused editor process an activation action.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public bool RaiseEventAgain { get; set; }

Property Value

Type Description

true, to raise the event again; otherwise, false.


An end user can activate the focused cell’s in-place editor in the following ways:

  • Click the required cell
  • Press Enter
  • Press F2
  • Start typing.

To Make the Focused Editor Process an Activation Action

  1. Handle the DataViewBase.ProcessEditorActivationAction event.
  2. Use the ActivationActionEventArgsBase.ActivationAction and ActivationActionEventArgsBase.MouseLeftButtonEventArgs / ActivationActionEventArgsBase.KeyDownEventArgs / ActivationActionEventArgsBase.TextInputEventArgs properties to get the action’s information.
  3. Set the RaiseEventAgain property to true to make the focused editor process the activation action.

Example 1

When an end user clicks a cell, the default behavior only activates the cell editor. The GridControl grabs the click event and the editor does not receive it, so the click does not select an item inside the editor. However, you can handle the DataViewBase.ProcessEditorActivationAction event to make the GridControl raise the click event again after handling it:

View Example: How to Specify Navigation in Custom Cell Editors

<dxg:GridControl Name="grid" ItemsSource="{Binding Items}">
    <dxg:GridColumn FieldName="Country"/>
    <dxg:GridColumn FieldName="City">
                <dxe:ListBoxEdit x:Name="PART_Editor" ItemsSource="{Binding RowData.Row.Cities}"/>
        <dxg:TableView ProcessEditorActivationAction="TableView_ProcessEditorActivationAction" />
void TableView_ProcessEditorActivationAction(object sender, DevExpress.Xpf.Grid.ProcessEditorActivationActionEventArgs e) {
    if (e.Column.FieldName == "City" 
     && (e.ActivationAction == ActivationAction.MouseLeftButtonDown 
      && e.MouseLeftButtonEventArgs.LeftButton == System.Windows.Input.MouseButtonState.Pressed))
        e.RaiseEventAgain = true;

Example 2

The following code sample shows how to make the Slider (which is specified as a custom editor) process the + and - keys after activating an editor:

void TableView_ProcessEditorActivationAction(object sender, ProcessEditorActivationActionEventArgs e) {
    if(e.Column.FieldName == "HoursActive" && e.ActivationAction == ActivationAction.KeyDown) {
        e.RaiseEventAgain = IsSliderCommand(e.KeyDownEventArgs.Key);
    if(e.Column.FieldName == "HoursActive" && e.ActivationAction == ActivationAction.MouseLeftButtonDown) {
        e.RaiseEventAgain = true;

bool IsSliderCommand(Key key) {
    switch(key) {
        case Key.Add:
        case Key.Subtract:
        case Key.OemPlus:
        case Key.OemMinus:
            return true;
            return false;

Run Demo: Cell Editors

See Also