Back to Devexpress

DataViewBase.SelectedRows Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-6e2814fb.md

latest2.2 KB
Original Source

DataViewBase.SelectedRows Property

OBSOLETE

Use the SelectedItems property instead

Gets the data rows/cards currently selected within a View.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
[Obsolete("Use the DataControlBase.SelectedItems property instead")]
[Browsable(false)]
public IList SelectedRows { get; }
vb
<Obsolete("Use the DataControlBase.SelectedItems property instead")>
<Browsable(False)>
Public ReadOnly Property SelectedRows As IList

Property Value

TypeDescription
IList

A list of currently selected rows/cards.

|

Remarks

The SelectedRows collection contains data objects which correspond to data rows currently selected within a View. To select a row, use the DataControlBase.SelectItem method. To unselect a row, use the DataControlBase.UnselectItem method.

To obtain handles of selected rows, use the DataControlBase.GetSelectedRowHandles method.

To learn more, see Multiple Row Selection.

Note

To avoid performance issues when operating with large volumes of data, the grid control does not track selected rows in server mode.

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace