DataGrid.SelectionChanged Event

Occurs when the SelectedItem or SelectedItems property value changes.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Syntax

'Declaration
Public Event SelectionChanged As SelectionChangedEventHandler
public event SelectionChangedEventHandler SelectionChanged
<sdk:DataGrid SelectionChanged="eventhandler"/>

Remarks

The property that indicates the current selection depends on the SelectionMode property value, as shown in the following table.

SelectionMode property value

Property that indicates the current selection

Single

SelectedItem

Extended

SelectedItems

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.