Back to Devexpress

TreeListView.SelectCells(TreeListNode, ColumnBase, TreeListNode, ColumnBase) Method

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

latest3.3 KB
Original Source

TreeListView.SelectCells(TreeListNode, ColumnBase, TreeListNode, ColumnBase) Method

Selects multiple cells.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void SelectCells(
    TreeListNode startNode,
    ColumnBase startColumn,
    TreeListNode endNode,
    ColumnBase endColumn
)
vb
Public Sub SelectCells(
    startNode As TreeListNode,
    startColumn As ColumnBase,
    endNode As TreeListNode,
    endColumn As ColumnBase
)

Parameters

NameTypeDescription
startNodeTreeListNode

A TreeListNode object that represents the node containing the cell that identifies the starting point of the selection.

| | startColumn | ColumnBase |

A ColumnBase object that represents the column containing the cell that identifies the starting point of the selection.

| | endNode | TreeListNode |

A TreeListNode object that represents the node containing the cell that identifies the end point of the selection.

| | endColumn | ColumnBase |

A ColumnBase object that represents the column containing the cell that identifies the end point of the selection.

|

Remarks

The SelectCells method allows you to select multiple cells, adding them to the existing selection (if any). In this case, the method’s parameters determine the starting and ending boundaries of the block.

The SelectCells method does nothing if the DataViewBase.NavigationStyle property isn’t set to GridViewNavigationStyle.Cell and/or the DataControlBase.SelectionMode property isn’t set to Cell.

To select a single cell, use the TreeListView.SelectCell method.

To learn more on multi-cell selection, see Multiple Cell Selection.

See Also

SelectCell

UnselectCell

UnselectCells

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace