SetSelectedRange(CellIndex, Int32, Int32) Method

Definition

Assembly Avalonia.Controls.TreeDataGrid.dll

Sets the current selection to the specified range of cells.

void SetSelectedRange(CellIndex start, int columnCount, int rowCount)

Parameters

start
CellIndex

The index of the cell from which the selection should start.

columnCount
Int32

The number of columns in the selection.

rowCount
Int32

The number of rows in the selection.

Remarks

This method clears the current selection and selects the specified range of cells. Note that if the ITreeDataGridSource is currently sorted then the resulting selection may not be contiguous in the data source.