if (grdConsole.ItemsSource == null) { ConsoleCollection = e.Result.Response; grdConsole.ItemsSource = GetGroupedCollection(ConsoleCollection, CurrentGroupByColumn); } else { foreach (Task data in e.Result.Response.OrderBy(item =>item.TaskID)) { var existingData = (from con in this.ConsoleCollection where con.TaskID == data.TaskID select con).FirstOrDefault(); if (existingData != null) { this.ConsoleCollection.Remove(existingData); } this.ConsoleCollection.Add(data); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)