Skip to main content

SelectedIndex Property

Gets or sets the index of the current selection.

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

public int SelectedIndex { get; set; }

Return Value​

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

See Also​

Reference​

DataGrid Class
Avalonia.Controls Namespace