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

PropertyGridControl.ShowEditor(Boolean) Method

Activates the editor nested in a focused cell.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PropertyGrid

#Declaration

public void ShowEditor(
    bool selectAll = false
)

#Optional Parameters

Name Type Default Description
selectAll Boolean False

true to select the editor’s content; otherwise, false.

#Remarks

To programmatically activate the cell’s editor, you should focus the cell and call the ShowEditor method. This method raises the PropertyGridControl.ShowingEditor event, allowing you to prevent showing editors for individual cells, thus preventing their values from being edited. After the editor has been shown, the property grid fires the PropertyGridControl.ShownEditor event.

See Also