App crashes on navigation

Hi,

I have an issue when I navigate on a specific page of my application. The app crashes. This error appears on my event viewer:

Nom de l’application défaillante Progin.CSharp.SellingPricesCalculation.GUI.exe, version : 1.0.0.0, horodatage : 0x5e58842a
Nom du module défaillant : Windows.UI.Xaml.dll, version : 10.0.19041.572, horodatage : 0x789abd1c
Code d’exception : 0xc000027b
Décalage d’erreur : 0x00835f91
ID du processus défaillant : 0x1864
Heure de début de l’application défaillante : 0x01d70fffa5ad57d2
Chemin d’accès de l’application défaillante : D:\DEV\Progin-Calculation\Progin.CSharp.SellingPricesCalculation.GUI\bin\x86\Debug\AppX\Progin.CSharp.SellingPricesCalculation.GUI.exe
Chemin d’accès du module défaillant: C:\Windows\System32\Windows.UI.Xaml.dll
ID de rapport : 7c7dd303-4ad4-47b3-902f-342d854c2827
Nom complet du package défaillant : ProginCalculation_0.2.13.0_x86__50jnp62a23wa8
ID de l’application relative au package défaillant : App

This bug appears when I create an application package and I install it. When I launch app from Visual tudio (release or debug, any C), it works fine.

I analized the problem in depth, and I notice the issue come from SFDataGrid:

- if Visibility=Collapsed : ok
- if I show only the first colum: ok
- if I have more columns: not ok

The grid contains less than 300 rows. Below, the code of the datagrid:
<syncfusion:SfDataGrid  x:Name="GridItems" Visibility="Visible" 
            ItemsSource="{x:Bind itemsList, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
            RelativePanel.Below="GridOptions"
            RelativePanel.Above="PanelInfoConnection"
            RelativePanel.AlignLeftWithPanel="True"
            RelativePanel.AlignRightWithPanel="True"
            AutoGenerateColumns="False"
            AllowResizingColumns="True"
            AllowFocusOnInteraction="True"
            AllowDraggingRows="True"
            AllowSorting="True"
            AllowSelectionOnPointerPressed="False"
            EditTrigger="OnTap"
            ColumnSizer="SizeToHeader"
            SelectionMode="Single"
            RowHeight="28"
            BorderThickness="0"
            ShowColumnWhenGrouped="False"
            AllowGrouping="True"
            AutoExpandGroups="True"
            GroupCaptionTextFormat=" {Key} "
            CurrentCellEndEdit="GridItems_CurrentCellEndEdit"
            CurrentCellBeginEdit="GridItems_CurrentCellBeginEdit"
            CellTapped="GridItems_CellTapped"
            LiveDataUpdateMode="AllowDataShaping"
            AllowEditing="True"
            AllowFiltering="True"
            CellStyle="{StaticResource cellStyleItem}"
            HeaderStyle="{StaticResource cellStyleItem}">
            <syncfusion:SfDataGrid.GroupColumnDescriptions>
                <syncfusion:GroupColumnDescription ColumnName="ClassItem.DescriptionCode"/>
            </syncfusion:SfDataGrid.GroupColumnDescriptions>
            <syncfusion:SfDataGrid.Columns>
                <syncfusion:GridTextColumn AllowGrouping="True" MappingName="ClassItem.DescriptionCode" UpdateTrigger="PropertyChanged" AllowEditing="False"/>
                <syncfusion:GridTextColumn MappingName="No" UpdateTrigger="PropertyChanged" HeaderText="N°" AllowEditing="False"/>
                <syncfusion:GridTextColumn ColumnSizer="SizeToCells" MappingName="Description" UpdateTrigger="PropertyChanged" x:Uid="TextDescription" AllowEditing="True"/>
                <syncfusion:GridTextColumn ColumnSizer="SizeToCells" MappingName="Descriptionbis" UpdateTrigger="PropertyChanged" x:Uid="TextDescription2" AllowEditing="True"/>
                <syncfusion:GridCheckBoxColumn MappingName="Estimatedcost" UpdateTrigger="PropertyChanged" x:Uid="TextEstimatedcost" AllowEditing="True"/>
                <syncfusion:GridTextColumn MappingName="Baseunitcode" UpdateTrigger="PropertyChanged" x:Uid="TextBaseunit" AllowEditing="True"/>
                <syncfusion:GridNumericColumn MappingName="Unitcost" FormatString="##,0.##" UpdateTrigger="PropertyChanged" x:Uid="TextUnitcostItem" AllowEditing="True"/>
                <syncfusion:GridNumericColumn MappingName="Volumicmass" FormatString="##,0.##" UpdateTrigger="PropertyChanged" x:Uid="TextVolumicmass" AllowEditing="True"/>
                <syncfusion:GridTextColumn MappingName="Productgroupcode" UpdateTrigger="PropertyChanged" x:Uid="TextProductgroupcode" AllowEditing="True"/>
                <syncfusion:GridCheckBoxColumn MappingName="Fixprice" UpdateTrigger="PropertyChanged" x:Uid="TextFixprice" AllowEditing="True"/>
            </syncfusion:SfDataGrid.Columns>
        </syncfusion:SfDataGrid>

Do you have recommendations about creating app package?

Syncfusion: 18.4.0.30
Windows: 10 Profesional (Version 20H2)

4 Replies 1 reply marked as answer

VS Vijayarasan Sivanandham Syncfusion Team March 4, 2021 09:06 PM UTC

Hi Daniel Garcia,

Thank you for contacting Syncfusion support.


Currently, we are analyzing your requirement of “App crashes on navigation in SfDataGrid” We will validate and update you the details on or before March 08, 2021. 
 
We appreciate your patience until then. 
 
Regards, 
Vijayarasan S 



VS Vijayarasan Sivanandham Syncfusion Team March 8, 2021 05:51 PM UTC

Hi Daniel Garcia,

Thank you for your patience. 

Based on provided information we have checked the reported issue
“App crashes on navigation in SfDataGrid” and unable to replicate the issue from our end. it is working fine as expected. Please find the tested sample from our end in the below link,

Sample link:
https://www.syncfusion.com/downloads/support/forum/163143/ze/Sample995040237 
Can you please share us below things?       
        1. Brief replication procedure/video illustration of the reported issue
        2.
Could you please provide code snippet related to customization in SfDataGrid
        3. Could you please provide more details about your scenario with illustrations 

if you still facing the same issue? If yes, please modify the sample based on your scenario. 

App Package creation Link below mentioned for your reference,
https://docs.microsoft.com/en-us/windows/msix/package/packaging-uwp-apps
 

It will be helpful for us to check on it and provide you the solution at the earliest.

Regards,
Vijayarasan S
 


Marked as answer

DG Daniel Garcia March 10, 2021 03:35 PM UTC

Hi Vijayarasan,

I finally fixed my issue. The problem came from style:

 CellStyle="{StaticResource cellStyleItem}"
 HeaderStyle="{StaticResource cellStyleItem}"

I used the same style, but target must be different....

I created another style with GridHeaderCellControl as Target, and it's works fine.

Thank's for your help.

Regards,


VS Vijayarasan Sivanandham Syncfusion Team March 11, 2021 03:03 PM UTC

Hi Daniel Garcia, 

Thanks for the update.
 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you😊. 
 
Regards, 
Vijayarasan S 


Loader.
Up arrow icon