[]
Gets or sets the index of the data item corresponding to the selected row.
public int SelectedIndex { get; set; }
<p>In unbound mode, there are no data items associated with the rows, and
this property always returns -1.
You can get the index of the selected row in bound and unbound modes using the Selection property.