Hi I have followed the examples here to try and create paging in my datagrid. The paging controls show and I have bound to the pager in the code behind but my datagrid shows nothing. Any help appreciated. (PlayerList is an ObservableCollection)
<StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<sfpager:SfDataPager x:Name ="sfDataPager"
Grid.Row="0"
PageSize="10"
HeightRequest ="50"
NumericButtonCount="10"
Source="{Binding PlayerList}">
</sfpager:SfDataPager>
<datagrid:SfDataGrid x:Name="PlayerDataGrid"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
AutoGenerateColumns="False"
ColumnSizer="Star"
AllowSorting="True"
AllowTriStateSorting="True"
AllowMultiSorting="True"
Grid.Row="1"
SelectionMode="Single"
SelectionChanged="PlayerDataGrid_SelectionChanged"
AllowPullToRefresh ="True"
PullToRefreshCommand="{Binding RefreshCommand}"
IsBusy="{Binding IsBusy}"
>
<datagrid:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
<datagrid:GridTextColumn HeaderText="Name"
MappingName="FirstName" />
<datagrid:GridTextColumn HeaderText="Surname"
MappingName="LastName" />
<datagrid:GridTextColumn HeaderText="Guardian"
MappingName="ParentFName" />
<datagrid:GridTextColumn HeaderText="Phone"
MappingName="PhoneNum" />
<datagrid:GridTextColumn HeaderText="Team"
MappingName="PlayersTeam.TeamName"/>
</datagrid:SfDataGrid.Columns>
<datagrid:SfDataGrid.SortColumnDescriptions>
<datagrid:SortColumnDescription ColumnName="FirstName"
SortDirection="Ascending" />
<datagrid:SortColumnDescription ColumnName="LastName"
SortDirection="Ascending" />
<datagrid:SortColumnDescription ColumnName="PlayersTeam.TeamName"
SortDirection="Ascending" />
</datagrid:SfDataGrid.SortColumnDescriptions>
</datagrid:SfDataGrid>
</Grid>
</StackLayout>