Skip to main content

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

DataViewBase.ShowEditor() Method

In This Article

Activates the focused cell’s inplace editor.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void ShowEditor()

#Remarks

Note

Cell editors can be activated if the view’s DataViewBase.AllowEditing property is set to true and the DataViewBase.NavigationStyle property is set to GridViewNavigationStyle.Cell.

To invoke the cell’s editor in code, you should focus the cell and call the ShowEditor method:

tableView.MoveLastRow();
tableView.Grid.CurrentColumn = tableView.Grid.Columns[0];
Dispatcher.BeginInvoke(new Action(() => {
    tableView.ShowEditor();
}), DispatcherPriority.Render);

Refer to Focusing for information on how to move cell and row focus.

The ShowEditor method raises the GridViewBase.ShowingEditor event. This event allows you to prevent showing editors for individual cells, thus preventing their values from being edited. After the editor has been shown, the GridControl raises the GridViewBase.ShownEditor event.

See Also