ItemsSource Property (SfDataGrid)
Gets or sets a value indicating whether the external data source of SfDataGrid, to display the data in the grid. It supports the data sources such as List, ObservableCollection, and so on. ItemsSource property helps to bind the SfDataGrid with the collection of objects.
public object ItemsSource {get; set;}

Property Value

The items source of the SfDataGrid.
To bind the SfDataGrid to data, set the ItemsSource property to an System.Collections.IEnumerable implementation. Each row in the data grid is bound to an object in the data source, and each column in the data grid is bound to a property of the data object. In order for the SfDataGrid user interface to update automatically when items are added to or removed from the source data, the SfDataGrid must be bound to a collection that implements the System.Collections.Specialized.INotifyCollectionChanged interface, such as an ObservableCollection. To automatically reflect property changes, the objects in the source collection must implement the System.ComponentModel.INotifyPropertyChanged interface.
dataGrid.ItemsSource = viewModel.OrderInfoCollection;

Syncfusion.SfDataGrid.XForms: 16.1451.0.37

See Also