views:

48

answers:

0

Hi, i have simple master detail in wpf with listbox filled in with Order object and Xamdatagrid with OrderDetail. Listbox`s Itemsource is bound to the ObservableCollection defined in ViewModel. Xamdatagrid is also bound to the observablecollection defined in datagrid. If user click Order in the listbox i want to fill xamdatagrid with Order Details. It is working normally for the first time, Xamdatagrid is filled ok for the selected object in listbox. But when i click another object in listbox, so Xamdatagrid observablecollection is renewed, xamdatagrid is not refreshing. Do i have to bind in code xamdatagrid to observablecollection each time user click new order or how to refresh xamdatagrid entire collection??

Thank you.

related questions