Back to Devexpress

TreeListView.SelectCell(TreeListNode, ColumnBase) Method

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

latest2.4 KB
Original Source

TreeListView.SelectCell(TreeListNode, ColumnBase) Method

Selects the cell.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void SelectCell(
    TreeListNode node,
    ColumnBase column
)
vb
Public Sub SelectCell(
    node As TreeListNode,
    column As ColumnBase
)

Parameters

NameTypeDescription
nodeTreeListNode

A TreeListNode object that represents the node which contains the cell.

| | column | ColumnBase |

A ColumnBase object that represents the column which contains the cell.

|

Remarks

Use the SelectCell method to select a cell, adding it to the existing selection (if any). A cell is located at the intersection of the specified node and column.

The SelectCell 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 multiple cells, use the TreeListView.SelectCells method.

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

See Also

SelectCells

UnselectCell

UnselectCells

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace