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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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*/); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|