'Declaration Public Property SelectedItemsSource As IList
'Usage Dim instance As DataGridControl Dim value As IList instance.SelectedItemsSource = value value = instance.SelectedItemsSource
public IList SelectedItemsSource {get; set;}
'Declaration Public Property SelectedItemsSource As IList
'Usage Dim instance As DataGridControl Dim value As IList instance.SelectedItemsSource = value value = instance.SelectedItemsSource
public IList SelectedItemsSource {get; set;}
When this collection is provided, it and the SelectedItems collection will be synchronized at all times (in both directions). This allows the user to modify the list of selected items, or be notified of any change done in the selected items.
The collection must implement the IList interface, and must implement a notification interface, either INotifyCollectionChanged (recommended), or IBindingList. An example of such a collection is ObservableCollection<T> A code example can be found in the MVVM sample.
Note: for the SelectedItems at the details level, we must use the DetailsExpanding event. See the DetailsExpansionChangingeventArgs' SelectedItemsSources property.
Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2