TreeListView.SelectCells(Int32, ColumnBase, Int32, ColumnBase) Method
Selects multiple cells.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.1.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
public void SelectCells(
int startRowHandle,
ColumnBase startColumn,
int endRowHandle,
ColumnBase endColumn
)
Parameters
Name | Type | Description |
---|---|---|
startRowHandle | Int32 | An integer value that specifies the handle of the row 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. |
endRowHandle | Int32 | An integer value that specifies the handle of the row 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 block’s 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 TreeListView.MultiSelectMode property isn’t set to TableViewSelectMode.Cell.
To select a single cell, use the TreeListView.SelectCell method.
To learn more on multi-cell selection, see Multiple Cell Selection.