Skip to main content
All docs
V25.1
  • TreeViewControl.MoveFirstNode() Method

    Moves focus to the first visible node.

    Namespace: DevExpress.Xpf.Grid

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

    NuGet Package: DevExpress.Wpf.Grid.Core

    Declaration

    public void MoveFirstNode()

    Remarks

    You can use the following TreeViewControl methods to move the node focus:

    Method Description
    MoveFirstNode Moves focus to the first visible node.
    MoveNextPage Moves focus forward by the number of nodes displayed onscreen.
    MoveNextNode Moves focus to the node that follows the one currently focused.
    MovePrevNode Moves focus to the node that precedes the one currently focused.
    MovePrevPage Moves focus backward by the number of nodes displayed onscreen.
    MoveLastNode Moves focus to the last visible node.

    You cannot use these methods to focus hidden nodes or expand collapsed nodes.

    See Also