The method asynchronously parsit users from the site and enters the List<User> Users; list List<User> Users; .

This list is bound to the table <DataGrid ItemsSource="{Binding Users}" />

If scrolling the table with the results during the parsing results in an exception:

The ItemsControl object does not match its source of items.

Why is this happening?


The problem solved this answer https://stackoverflow.com/a/12881558/6641468

  • one
    try ObservableCollection instead of List - Gardes
  • It makes sense to issue a solution to the problem as an answer;) - user227049
  • @FoggyFinder, I'm not sure that this is the best possible solution, so I will refrain) - trydex

0