Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

[Obsolete("Use the DataControlBase.SelectedItems property instead")]
[Browsable(false)]
public IList SelectedRows { get; }

#Property Value

Type Description
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