i\'ve a problem updating my datagrid when clicking the button by using NotifyPropertyChanged.
It works if i set the DataGrid.ItemsSource in code behind, but it doesn\'t if i
public ObservableCollection MyCollection {get; set;}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
//if i set the ItemsSource here, updating of the UI works
dataGrid1.ItemsSource = MyCollection;
}