Browse Source

Merge pull request #12009 from almightyju/patch-2

Fix datagrid not updating when not attached to tree
pull/12036/head
Max Katz 3 years ago
committed by GitHub
parent
commit
6705d38366
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/Avalonia.Controls.DataGrid/DataGrid.cs

1
src/Avalonia.Controls.DataGrid/DataGrid.cs

@ -2101,6 +2101,7 @@ namespace Avalonia.Controls
if (DataConnection.DataSource != null && !DataConnection.EventsWired) if (DataConnection.DataSource != null && !DataConnection.EventsWired)
{ {
DataConnection.WireEvents(DataConnection.DataSource); DataConnection.WireEvents(DataConnection.DataSource);
InitializeElements(false /*recycleRows*/);
} }
} }

Loading…
Cancel
Save