Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148862 | Nov 6,2019 03:07 PM UTC | Nov 8,2019 06:21 PM UTC | Xamarin.Forms | 2 |
![]() |
Tags: SfDataGrid |
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackLayout Grid.Row="0">
<sfPager:SfDataPager x:Name="dataPager"
Source="{Binding OrderInfoCollection}"
NumericButtonCount="1"
PageSize="10"
DisplayMode="PreviousNextNumeric"
HorizontalOptions="CenterAndExpand"/>
</StackLayout>
<sfGrid:SfDataGrid Grid.Row="1"
x:Name="dataGrid"
AutoGenerateColumns="False"
ColumnSizer="Star"
ItemsSource="{Binding PagedSource, Source={x:Reference dataPager}}">
<sfGrid:SfDataGrid.Columns>
<sfGrid:GridNumericColumn MappingName="OrderID"/>
<sfGrid:GridTextColumn MappingName="CustomerID"/>
<sfGrid:GridTextColumn MappingName="ShipCity"/>
<sfGrid:GridTextColumn MappingName="ShipCountry"/>
</sfGrid:SfDataGrid.Columns>
</sfGrid:SfDataGrid>
</Grid> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.