Xceed DataGrid for Silverlight Documentation
SelectedItems Property (DataGridContext)


Gets or sets the selected data items.
Syntax
'Declaration
 
Public ReadOnly Property SelectedItems As SelectedItemCollection
'Usage
 
Dim instance As DataGridContext
Dim value As SelectedItemCollection
 
instance.SelectedItems = value
 
value = instance.SelectedItems
public SelectedItemCollection SelectedItems {get;}

Property Value

A SelectedItemCollection containing the selected data items.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionThe SelectedItems property can only be used with a synchronous data source. When using an asynchronous data source, the BeginGetSelectedItems and EndGetSelectedItems methods must be used instead.
Remarks

If more than one item is selected, the SelectedItem property will return the last item that was selected.

The SelectedItem and SelectedItems properties can only be used with a synchronous data source. When used with a asynchronous data source, an exception will be thrown.

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridContext Class
DataGridContext Members

Send Feedback