Syncfusion.SfDataGrid.XForms
Example 

SelectedItems Property (SfDataGrid)

Gets or sets the selected items collection of the SfDataGrid. To enable multiple Selection in SfDataGrid, you need to set the SelectionMode property to SelectionMode.Multiple.
Syntax
public ObservableCollection<object> SelectedItems {get; set;}

Property Value

The selected items collection of the SfDataGrid.
Remarks
SfDataGrid lets you to select a specific row or group of rows either programmatically or by touch interactions. When the selection mode is SelectionMode.Multiple the user can programmatically select more than one row by adding the underlying object to be selected to the SelectedItems property.
Example
dataGrid.SelectedItems.Add (viewModel.OrdersInfo [4]);
dataGrid.SelectedItems.Add (viewModel.OrdersInfo [5]);
AssemblyVersion

Syncfusion.SfDataGrid.XForms: 17.1451.0.38

See Also