Xceed DataGrid for WPF v7.2 Documentation
SelectedItemsSources Property


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DetailsExpansionChangingEventArgs Class : SelectedItemsSources Property
Gets a dictionary of collections associated to each detail grid pertaining to the master item.
Syntax
'Declaration
 
Public ReadOnly Property SelectedItemsSources As Dictionary(Of String,IList)
'Usage
 
Dim instance As DetailsExpansionChangingEventArgs
Dim value As Dictionary(Of String,IList)
 
instance.SelectedItemsSources = value
 
value = instance.SelectedItemsSources
public Dictionary<string,IList> SelectedItemsSources {get;}

Property Value

A reference to a dictionary of collections associated to each detail grid pertaining to the master item. The key of each collection in the dictionary is the master/detail relation name. By default, there is no collections in the dictionary.
Remarks

When a collection is provided for a given detail grid, it and the detail's 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.

Unlike the DataGridControl's SelectedItemsSource, here we use a dictionnary of collections, as there can be more than one detail attached to a single master item, and each detail has its own collection of SelectedItems.

A code example can be found in the MVVM sample.

Requirements

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

See Also

Reference

DetailsExpansionChangingEventArgs Class
DetailsExpansionChangingEventArgs Members