Skip to main content

TreeList.SelectCells(Int32, String, Int32, String) Method

Selects cells in the specified range by data source IDs.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v23.2.dll

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

Declaration

public void SelectCells(
    int startNodeId,
    string startColumn,
    int endNodeId,
    string endColumn
)

Parameters

Name Type Description
startNodeId Int32

An ID of the node containing the cell that specifies the starting point of the range to select.

startColumn String

A column containing the cell that specifies the starting point of the range to select.

endNodeId Int32

An ID of the node containing the cell that specifies the end point of the range to select.

endColumn String

A column containing the cell that specifies the end point of the range to select.

Remarks

The SelectCells method selects multiple cells in the specified range by data source IDs (see TreeListNode.Id). The start and end points of the range are specified using the cells located at the intersection of the nodes (rows) and columns passed as parameters. To discard the selection, use the TreeList.UnselectCell or TreeList.UnselectCells methods.

After the selection changes, the TreeList.SelectionChanged event raises.

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