I have such DataGrid
The way I've set up a updating lists in the past is:
Create an Update
method in you object (ConsoleData
) that you can pass a copy of that object and the object updates itself. The object also needs to implement INotifyPropertyChanged
.
In you model_DataArrived
method in the ViewModel find all matching objects and use the Update
method from step 1 to update the objects.
Find all new objects and add them to you list (DataList
).
Find all missing objects and remove them from you list (DataList
).