Export (0) Print
Expand All

DataGrid.SelectedIndex Property

Gets or sets the index of the current selection.

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

public int SelectedIndex { get; set; }
<sdk:DataGrid SelectedIndex="int"/>

Property Value

Type: System.Int32
The index of the current selection, or -1 if the selection is empty.

Dependency property identifier field: SelectedIndexProperty


Supported in: 5, 4, 3

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

Community Additions

© 2014 Microsoft