GridViewBase.SelectRange(Int32, Int32) Method
OBSOLETE
Use the SelectRange method instead
Selects multiple rows/cards, while preserving the current selection (if any).
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
[Obsolete("Use the DataControlBase.SelectRange method instead")]
[Browsable(false)]
public void SelectRange(
int startRowHandle,
int endRowHandle
)
Parameters
Name | Type | Description |
---|---|---|
startRowHandle | Int32 | An integer value specifying the row handle at which the selection starts. |
endRowHandle | Int32 | An integer value specifying the row handle at which the selection ends. |
Remarks
The SelectRange method adds the specified range of data rows/cards to the current selection. To clear the current selection before selecting, call the GridViewBase.ClearSelection method.
The SelectRange method does nothing in the cases listed below:
- Multiple row selection isn’t allowed.
- The specified row handles are invalid.
- The specified row handles point to hidden rows/cards that reside within collapsed groups.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectRange(Int32, Int32) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.