-
Notifications
You must be signed in to change notification settings - Fork 677
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 Not Displaying in WinUI3 Desktop #2703
Comments
This is caused by microsoft/CsWinRT#345. While we wait for that to be fixed, try to work around this problem by adding this line to an application's app.xaml file:
Sorry for the inconvenience. |
Hi @RBrid , Thank you for the workaround! Just an update, the workaround allows the DataGrid to display! However, we have come across crashes when we click on a cell or scroll vertically. We also noticed when we programmatically add styling to the DataGridColumnHeader, the header disappears. Are these issues related to this original issue? |
@eleanorleffler, please have a look at CommunityToolkit/WindowsCommunityToolkit#3374. Those changes in the WCT winui branch should address the crashes. But I am not aware of the DataGridColumnHeader styling problems. Feel free to open a new issue for that. Thanks, -R |
@RBrid We will be looking out for the next release of the Community Toolkit and will be opening a new issue for that styling problem (if it still exists)! Thanks! |
This bug has been fixed, and the fix will be available in our next release - WinUI 3 Preview 4. We're hoping to ship this preview release in early February. Thanks! |
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
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
Screenshot#1 - Current Behavior
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)
The text was updated successfully, but these errors were encountered: