Skip to main content

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

Discards selection of the specified range of cells by data source IDs.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public void UnselectCells(
    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 unselect.

startColumn String

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

endNodeId Int32

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

endColumn String

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

Remarks

The UnselectCells method discards the selection of 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 select cells, use the TreeList.SelectCell or TreeList.SelectCells method.

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

Note

The UnselectCells 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