This question is locked. New answers and comments are not allowed.
I am using the following statement to bind my data to the grid:
completeProductList is simply a List<Product> collection and Product has various properties including a boolean Visible property.
The grid displays the correct items when loaded but if some of the products change their visible property in the background (not via the grid) they are not removed from the grid until I do a column sort or other action.
Is there a way to get the grid to automatically spot the change to the results of the LINQ expression and update the grid immediately or do I need to handle some event etc.
Thanks in advance,
Doug
MyDataGrid.ItemsSource = completeProductList.Where(p => p.Visible);
completeProductList is simply a List<Product> collection and Product has various properties including a boolean Visible property.
The grid displays the correct items when loaded but if some of the products change their visible property in the background (not via the grid) they are not removed from the grid until I do a column sort or other action.
Is there a way to get the grid to automatically spot the change to the results of the LINQ expression and update the grid immediately or do I need to handle some event etc.
Thanks in advance,
Doug
