Skip to content

GridView.SelectedIndex property

Gets or sets the selected row index, or -1 when nothing is selected.

public int SelectedIndex { get; set; }

Fluent: .SelectedIndex(Int32)