Back to Devexpress

GridViewBase.SelectRange(Int32, Int32) Method

wpf-devexpress-dot-xpf-dot-grid-dot-gridviewbase-dot-selectrange-x28-system-dot-int32-system-dot-int32-x29.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
[Obsolete("Use the DataControlBase.SelectRange method instead")]
[Browsable(false)]
public void SelectRange(
    int startRowHandle,
    int endRowHandle
)
vb
<Obsolete("Use the DataControlBase.SelectRange method instead")>
<Browsable(False)>
Public Sub SelectRange(
    startRowHandle As Integer,
    endRowHandle As Integer
)

Parameters

NameTypeDescription
startRowHandleInt32

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.

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.

To learn more, see Multiple Row Selection.

See Also

SelectItem(Int32)

UnselectItem(Int32)

GridViewBase Class

GridViewBase Members

DevExpress.Xpf.Grid Namespace