Describe the bug
In Windows Community Toolkit DataGrid 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
Regression
No response
Reproducible in sample app?
Steps to reproduce
1. Run the provided sample
Expected behavior
System.ArgumentNullException (Value cannot be null.) will not occur.
Screenshots

Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Nuget packages
None
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.
Help us help you
Yes, I'd like to be assigned to work on this item.
Describe the bug
In Windows Community Toolkit DataGrid 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
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
System.ArgumentNullException (Value cannot be null.) will not occur.
Screenshots
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Nuget packages
None
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.
Help us help you
Yes, I'd like to be assigned to work on this item.