The SelectedDataItems property of the xamDataPresenter allows you to set or obtain an array of the currently selected items. You can bind to this property and operate with xamDataPresenter selection while creating MVVM design pattern applications.
Note
Note
The items in the SelectedDataItems array are the actual data items from the underlying data source.
This property is exposed so that applications can “two-way” bind to it (which is its default binding mode) to select the associated DataRecords and/or be notified when the user selects cells and/or records. This behavior is determined by the SelectedDataItemsScope property which is explained below.
Selection Scope Configuration Summary
Selection configuration summary chart
Task
* Value*
The user selection not to have any impact on the SelectedDataItems property.
If the SelectedDataItemsScope property is changed from its default value of None then every time the user changes selection the SelectedDataItems property will be set to a new array of data items based on the behavior described in the above table.
Related Topics
The following topics provide additional information related to this topic.