Answer the question
In order to leave comments, you need to log in
How to make DataGrid.DataContext binding without freezing UI thread (C# WPF .NET 4.5)?
Greetings to all, maybe someone has encountered such a problem, because I can’t solve it =( I did
everything according to the instructions: https://metanit.com/sharp/wpf/21.1.php
I do not bind data to a ListBox, as in the example, and to the DataGrid:
DataGridMark.DataContext = db.AccountsMark.Local.ToBindingList();
db.AccountsMark.Add(acc);
await db.SaveChangesAsync();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question