Back to Devexpress

TreeListMultiSelection.SelectCells(IEnumerable<TreeListNode>, TreeListColumn) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelistmultiselection-dot-selectcells-x28-ienumerable-treelistnode-treelistcolumn-x29.md

latest3.1 KB
Original Source

TreeListMultiSelection.SelectCells(IEnumerable<TreeListNode>, TreeListColumn) Method

Selects the cells in the specified column of the specified nodes (rows).

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public void SelectCells(
    IEnumerable<TreeListNode> nodes,
    TreeListColumn column
)
vb
Public Sub SelectCells(
    nodes As IEnumerable(Of TreeListNode),
    column As TreeListColumn
)

Parameters

NameTypeDescription
nodesIEnumerable<TreeListNode>

Nodes in which to select the cells.

| | column | TreeListColumn |

A column in which to select the cells.

|

Remarks

The SelectCells method selects the cells located at the intersection of the specified nodes (rows) and column. To discard the selection, use the TreeListMultiSelection.UnselectCell method.

After the selection is changed, the TreeList.SelectionChanged event is raised.

Note

The SelectCells method is not in effect if multiple cell selection is disabled. This mode can be enabled by setting the TreeListOptionsSelection.MultiSelect property to true and the TreeListOptionsSelection.MultiSelectMode property to CellSelect.

See Also

UnselectCell(TreeListNode, TreeListColumn)

SelectCells

TreeListMultiSelection Class

TreeListMultiSelection Members

DevExpress.XtraTreeList Namespace