The SelectedDataItems property of the xamDataGrid allows you to set or obtain an array of the currently selected items. You can bind to this property and operate with xamDataGrid selection while creating MVVM design pattern applications.
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.
You can also use the SelectedDataItem property to get or set the last selected item of the xamDataGrid .
The following topics provide additional information related to this topic.