Skip to content

Commit

Permalink
Fix datagrid performance on attached to tree (#16140)
Browse files Browse the repository at this point in the history
see #16139

Co-authored-by: Max Katz <maxkatz6@outlook.com>
  • Loading branch information
IZIDIA and maxkatz6 committed Jul 8, 2024
1 parent 6b5ab32 commit 64e86d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Controls.DataGrid/DataGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2140,7 +2140,7 @@ protected override void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e)
if (DataConnection.DataSource != null && !DataConnection.EventsWired)
{
DataConnection.WireEvents(DataConnection.DataSource);
InitializeElements(false /*recycleRows*/);
InitializeElements(true /*recycleRows*/);
}
}

Expand Down

0 comments on commit 64e86d3

Please sign in to comment.