Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataGrid.SelectedItems Property

Silverlight

Gets a list that contains the data items corresponding to the selected rows.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

public IList SelectedItems { get; }

Property Value

Type: System.Collections.IList
A list of the data items corresponding to the selected rows.

If the SelectionMode property is set to Single, the SelectedItems list will contain only the SelectedItem property value.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft