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

TreeListView.SelectRange(TreeListNode, TreeListNode) Method

OBSOLETE

Use the SelectRange method instead

Selects multiple nodes, while preserving the current selection (if any).

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

[Obsolete("Use the DataControlBase.SelectRange method instead")]
[Browsable(false)]
public void SelectRange(
    TreeListNode startNode,
    TreeListNode endNode
)

#Parameters

Name Type Description
startNode TreeListNode

A TreeListNode object that is the node at which the selection starts.

endNode TreeListNode

A TreeListNode object that is the node at which the selection ends.

#Remarks

The SelectRange method adds the specified range of nodes to the current selection. To clear the current selection before selection, call the DataControlBase.UnselectAll method.

The SelectRange method does nothing in the cases listed below:

  • Multiple node selection is not allowed.
  • The specified nodes are invalid.
  • The specified nodes reside within collapsed nodes.
See Also