DataGridSelectedIndex Property

Gets or sets the index of the current selection.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll) Version: 11.3.999
public int SelectedIndex { get; set; }

Return Value

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

See Also