Xceed.Silverlight.DataGrid.v2.0 Assembly > Xceed.Silverlight.DataGrid Namespace > DataGridContext Class : SelectedItem Property |
'Declaration Public Property SelectedItem As Object
'Usage Dim instance As DataGridContext Dim value As Object instance.SelectedItem = value value = instance.SelectedItem
public object SelectedItem {get; set;}
Exception | Description |
---|---|
System.InvalidOperationException | The SelectedItem 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. |
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.
Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family