microsoft-ui-xaml
microsoft-ui-xaml copied to clipboard
Exception in DataGrid with runtime type
Describe the bug
In WINUI we are currently facing an exception when attempting to load the DataGrid component while using runtime-defined types as our data source. The
exception occurs during the loading process of the component using these types.
When debugging the provided sample project, please ensure that all the options under 'Common Language Runtime Exceptions' are enabled. DataGridException.zip
Steps to reproduce the bug
1.Run the provided sample.
Expected behavior
System.ArgumentNullException (Value cannot be null.) will not occur.
Screenshots
NuGet package version
None
Windows version
No response
Additional context
Any suggestions, or guidance on how to address the exception encountered when using runtime-defined types with the DataGrid would be greatly appreciated.
Any updates on this?
WiniUI doesn't have an in-box DataGrid, so you are using a control that is maintained elsewhere. Probably the Windows Community Toolkit.
We are using the DataGrid control from the Windows Community Toolkit.
@DhivyaBharathi-SF3890 Yes, and that is maintained in the Windows Community Toolkit repo. Issues with that DataGrid should be raised there:
https://github.com/CommunityToolkit/WindowsCommunityToolkit
https://github.com/CommunityToolkit/Windows
@kmgallahan - We raised a new issue in WindowsCommunityToolKit Issue Link - https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/4995