Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a wpf form in which during the running of the program, I am reloading a grid. (Not a gridview - the ones of wpf) The grid is reloading ok but the old items are shown. When you go back and go in to it again the new items are shown.

Is there something similar to this.refresh or dataGrid.Items.Refresh() or CollectionViewSource.GetDefaultView(yourGrid.ItemsSource).Refresh();
i tried everything. pls any help?
Posted
Updated 12-Aug-11 3:33am
v3

1 solution

Depending on how your colleciton items are designed, you may have to rebind your data source.

If the items in the collection inherit INotifyPropertyChanged, the grid will automatically update.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900