You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ItemsSource of DataGrid binded to DataGridCollectionView, cell editing by double click is not working.
But when ItemsSource binded to ObservableCollection, cell editing is working.
The issue persisted even when I was not using IReadOnlyList, because of the casting with parenthesis in the properties path internally. I have fixed that issue with the pull request I made today.
However, using IReadOnlyList will still make it uneditable since IReadOnly sets the ReadOnly property on the data grid column. It is working for you on the observable collection one because, it first changes to IEnumerable and then to ObservableCollection, in the process losing the read-only property.
Describe the bug
Hello!
When ItemsSource of DataGrid binded to DataGridCollectionView, cell editing by double click is not working.
But when ItemsSource binded to ObservableCollection, cell editing is working.
To Reproduce
https://github.com/BreakByBrick/Avalonia.Issue/tree/main/DataGrid.CantEditDataGridCollectionView
Expected behavior
Double click on DataGrid cell with ItemsSource binded to DataGridCollectionView, starts cell editing.
Avalonia version
11.0.10
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: