Skip to main content
All docs
V26.1
  • TreeViewControl.ShowEditor(Boolean) Method

    Activates an in-place editor within the focused node. The optional parameter allows you to automatically select all text within the editor.

    Namespace: DevExpress.Xpf.Grid

    Assembly: DevExpress.Xpf.Grid.v26.1.dll

    Declaration

    public void ShowEditor(
        bool selectAll = false
    )

    Optional Parameters

    Name Type Default Description
    selectAll Boolean False

    true to select all text automatically within the activated in-place editor; otherwise, false.

    Remarks

    Note

    In-place editors can be activated only when the AllowEditing property is set to true.

    Call the ShowEditor(true) method to activate the in-place editor within the focused node and select all content. Pass false (or use the parameterless ShowEditor() overload) to activate the editor without automatic content selection.

    treeViewControl.FocusedRowHandle = 0;
    treeViewControl.ShowEditor(true);
    
    See Also