Back to Devexpress

TreeListView.SelectRange(TreeListNode, TreeListNode) Method

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-dot-selectrange-x28-devexpress-dot-xpf-dot-grid-dot-treelistnode-devexpress-dot-xpf-dot-grid-dot-treelistnode-x29.md

latest2.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
[Obsolete("Use the DataControlBase.SelectRange method instead")]
[Browsable(false)]
public void SelectRange(
    TreeListNode startNode,
    TreeListNode endNode
)
vb
<Obsolete("Use the DataControlBase.SelectRange method instead")>
<Browsable(False)>
Public Sub SelectRange(
    startNode As TreeListNode,
    endNode As TreeListNode
)

Parameters

NameTypeDescription
startNodeTreeListNode

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

SelectionMode

SelectItem(Int32)

UnselectItem(Int32)

Row Selection

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace