Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datagrid : Expanding a column after a total row deletion crashs the Datagrid #9205

Closed
O4D opened this issue Jan 4, 2024 · 1 comment
Closed
Labels
area-DataGrid DataGrid control area-External Not owned by the WinUI team, not actionable in this repository. bug Something isn't working team-Controls Issue for the Controls team

Comments

@O4D
Copy link

O4D commented Jan 4, 2024

Describe the bug

DataGrid_VisualCrash SIMPLE.zip
A. After a total deletion of all the rows present in Datagrid, the column resizing crash on visual.cs

Complementary/Very similars bugs :
B. After 50 element added then all deleted, it crash on visual.cs
C. (Same project) A scrollviewer Visible without any row in the Datagrid trigger a crash on visual.cs

Steps to reproduce the bug

A. Column resize bug

  1. Click on 'Add 10'
  2. Click on 'Erase All'
  3. Resize the column width with mouse
  4. See error "The specified Visual is not an ancestor of this Visual"

B. 50 elements total deletion bug

  1. Click on 'ADD 10' (5 times, so 50elements)
  2. Click on 'Erase All'
  3. See error "The specified Visual is not an ancestor of this Visual"

C. Scrollviewer visibility bug

  1. In XAML, set the Scrollviewer visibility to "Visible"
  2. Launch the project
  3. See error "The specified Visual is not an ancestor of this Visual"

Expected behavior

No crash

Screenshots

DataGrid_VisualCrash SIMPLE.zip

NuGet package version

None

Windows version

Windows 11 (22H2): Build 22621

Additional context

.NET concerned : .NET Framework 4.7.2 and .NET 7

This issue is reported because of a more problematic issue which is happening on datagrid on a more complex C# Solution : when the datagrid is displayed, after 2 total deletion of the rows, the same crash appears. So I'm trying to isolate any crash source.

DataGrid_VisualCrash SIMPLE.zip

@O4D O4D added the bug Something isn't working label Jan 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 4, 2024
@kmgallahan
Copy link
Contributor

kmgallahan commented Jan 5, 2024

<UseWPF>true</UseWPF>

Wrong repo: https://github.com/dotnet/wpf

@bpulliam bpulliam added team-Controls Issue for the Controls team area-DataGrid DataGrid control and removed needs-triage Issue needs to be triaged by the area owners labels Jan 5, 2024
@ranjeshj ranjeshj added the area-External Not owned by the WinUI team, not actionable in this repository. label Feb 1, 2024
@ranjeshj ranjeshj closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DataGrid DataGrid control area-External Not owned by the WinUI team, not actionable in this repository. bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

4 participants