SelectedIndex Property
Gets or sets the index of the current selection.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)
- C#
- VB
- F#
public int SelectedIndex { get; set; }
Public Property SelectedIndex As Integer
Get
Set
member SelectedIndex : int with get, set
Return Value
Int32
The index of the current selection, or -1 if the selection is empty.