Skip to content
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

Null ref Exception in datagrid when assining Items Source #121

Open
jogibear9988 opened this issue Mar 8, 2025 · 1 comment
Open

Null ref Exception in datagrid when assining Items Source #121

jogibear9988 opened this issue Mar 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jogibear9988
Copy link

jogibear9988 commented Mar 8, 2025

Describe the bug

I got a null ref exception in Datagrid when assiging a new ItemSource.
Don't know if it could be repeated.

To Reproduce

Not Sure if it could repeated. It happend after assinung a new ItemsSource and scrolling and sorting before.

Stacktrace and Error in Avalonia:

Image

Expected behavior

No exception should occure

Avalonia version

11.2.5

OS

Windows

Additional context

No response

@jogibear9988 jogibear9988 added the bug Something isn't working label Mar 8, 2025
@MrJul MrJul transferred this issue from AvaloniaUI/Avalonia Mar 8, 2025
@zrt2399
Copy link

zrt2399 commented Mar 31, 2025

Try this in your DataGrid
UseLayoutRounding="False"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants