<sfgrid:SfDataGrid ScrollingMode="Pixel" x:Name="list" AllowPullToRefresh="True"
PullToRefreshCommand="{Binding PullToRefreshCommand}"
AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,1,1,1"
ItemsSource="{Binding Items}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="4"
AutoGenerateColumns="False"
AllowSorting="True"
IsEnabled="True"
ColumnSizer="Star"
AllowSwiping="True"
AllowDraggingRow="True"
AllowDraggingColumn="False"
MaxSwipeOffset="250"
GridTapped="dataGrid_GridTapped"
SelectionMode="Single"
HeaderRowHeight="40"
QueryRowHeight = "DataGrid_QueryRowHeight"
GridLoaded="DataGrid_GridLoaded"
VerticalOptions="FillAndExpand">
Problem was with my datatemplate as I use SfBorderView as shown below. It throws exception in android 4. I changed your sample and changed with reproducible crash. I use also latest XF and Android Support libraries. In your sample were older versions. I updated them as well.
<syncfusion:SfDataGrid x:Name="MyDataGrid"
ScrollingMode="Pixel"
AllowPullToRefresh="True"
PullToRefreshCommand="{Binding PullToRefreshCommand}"
AbsoluteLayout.LayoutFlags="All"
AbsoluteLayout.LayoutBounds="0,1,1,1"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
AutoGenerateColumns="False"
AllowSorting="True"
IsEnabled="True"
ColumnSizer="Star"
AllowSwiping="True"
AllowDraggingRow="True"
AllowDraggingColumn="False"
MaxSwipeOffset="250"
SelectionMode="Single"
HeaderRowHeight="40"
GridLoaded="MyDataGrid_GridLoaded"
VerticalOptions="FillAndExpand"
ItemsSource="{Binding OrdersInfo}">
<syncfusion:SfDataGrid.Columns
x:TypeArguments="syncfusion:Columns">
<syncfusion:GridTemplateColumn >
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<syncfusion:BorderView BorderColor="Silver" BackgroundColor="White" Margin="10,5" Padding="1" InputTransparent="True">
</syncfusion:BorderView>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn>
</syncfusion:SfDataGrid.Columns>
</syncfusion:SfDataGrid>
<syncfusion:SfDataGrid.Columns>
<syncfusion:GridTemplateColumn MappingName="OrderID" >
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<syncfusion:BorderView BorderColor="Silver"
BackgroundColor="White"
InputTransparent="True">
<Label Text="{Binding OrderID}"/>
</syncfusion:BorderView>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn>
</syncfusion:SfDataGrid.Columns> |