Source Property (SfDataPager)

Gets or sets the items source of the SfDataPager. SfDataPager is bind to the observable collection of data. This property is set only when normal paging is used, since setting this property loads all the items to the grid initially.
public IEnumerable Source {get; set;}

Property Value

The items source of the SfDataPager.
The items source of the SfDataPager is set to the collection, based on which PagedSource is created internally. The Syncfusion.SfDataGrid.SfDataGrid.ItemsSource is set as PagedSource.

The items can be loaded in the Datapager by two ways: normal paging and on demand paging. In normal paging, all the items are loaded initially when the grid is loaded. In on demand paging, the items are loaded to the grid only when navigating to the page i.e. items are loaded dynamically on demand. Source property should not be assigned when on demand paging is used.

sfPager.Source = viewModel.Info;
sfGrid.ItemsSource = sfPager.PagedSource;

Syncfusion.SfDataGrid.Android: 17.1451.0.47

See Also