Hi all i am new to WPF and i have a small problem ,i hope you can help me.
I have a DataGrid in a parent window..when i open a pop up window and select an item,that pop up window closes and the DataGrid in the parent window updated with the selected item.
My problem is when i set the DataGrid’s ItemSource property,it works only in the first time,but when i add other items and set the DataGrid’s ItemSource it does not update the Grid though the List it is bound to,is updated.
I wonder if there is a method for DataBind() like the ASP.Net GridView
What kind of List are you using?
It ought to work as you described when using an ObservableCollection.