microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Exception in DataGrid with runtime type

Open DhivyaBharathi-SF3890 opened this issue 1 year ago • 5 comments

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

image

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.

DhivyaBharathi-SF3890 avatar Mar 18 '24 16:03 DhivyaBharathi-SF3890

Any updates on this?

ghost avatar May 30 '24 04:05 ghost

WiniUI doesn't have an in-box DataGrid, so you are using a control that is maintained elsewhere. Probably the Windows Community Toolkit.

kmgallahan avatar May 30 '24 09:05 kmgallahan

We are using the DataGrid control from the Windows Community Toolkit.

ghost avatar Jun 20 '24 13:06 ghost

@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 avatar Jun 20 '24 16:06 kmgallahan

@kmgallahan - We raised a new issue in WindowsCommunityToolKit Issue Link - https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/4995

ManiAkash9 avatar Jun 25 '24 04:06 ManiAkash9