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 I select a row in a DataGrid I show a panel to the right with the row's contents for better display and editing.
When Selecting an Item,
a) a reference is set in the ViewModel to the dataGrid.SelectedItem.
b) an Observable boolean "ShowEditPanel" is set to 'true'.
When the panel sees the boolean change, it pops up. The DataSource is set to the reference object in the Viewmodel. It shows the row contents perfectly. However, when I change the object using TwoWay binding in the panel, the original data cell doesn't update until I scroll the row out of sight, and back again.
MrJul
transferred this issue from AvaloniaUI/Avalonia
Mar 8, 2025
Describe the bug
DataGridTest.zip
DataGrid_refresh_issue.mp4
To Reproduce
As you can see in the video, line 55 is only updated when it re-enters the visible area.
(Until then, the row will be erroneously moved to row 2.)
Expected behavior
When the ObservableCollection changes, the DataGrid should also be updated.
Avalonia version
11.1.1
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: