Skip to content

DataGrid Not Displaying in WinUI3 Desktop #2703

@eleanorleffler

Description

@eleanorleffler

Describe the bug

The CommunityToolKit DataGrid works in UWP but once transferred over to WinUI3 Desktop, the DataGrid does not display anything. See Screenshot#1 for current behavior.

The DataGrid is loading because the dataGrid_AutoGeneratingColumn event is called.

Steps to reproduce the bug

  1. Clone WinUI3 Problems DataGrid repository.
  2. Go to the DataGridWinUI folder.
  3. Open the DataGridWinUI solution in Visual Studio 2019 Preview.
  4. Build and run with Debug x64.
  5. You should see that the DataGrid does not appear.

Expected behavior

We expect to see the DataGrid filled with 4 customers, the same behavior as we saw in UWP. See Screenshot#2.

Build and run the DataGridUWP solution in the DataGridUWP folder to see expected behavior.

Screenshots

DataGridBlank
Screenshot#1 - Current Behavior

DataGridExpectedBehavior
Screenshot#2 - Expected Behavior

Version Info

NuGet package version:

[Microsoft.Toolkit.Uwp.UI.Controls.DataGrid 8.0.0-preview1]
[Microsoft.VCRTForwarders.140 1.0.6]
[Microsoft.WinUI 3.0.0-preview1.200515.3]

Targeting:

Target: Universal Windows
Target version: Windows 10, version 1809 (10.0; Build 17763)
Min version: Windows 10, version 1809 (10.0; Build 17763)

Windows 10 version Saw the problem?
Insider Build (xxxxx)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763) Yes
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Mobile
Xbox
Surface Hub
IoT

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions