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
When you go crazy (like me) because it doesn't work this time. Check the order of the calls. The OnPropertyChanged() must be called after the value was assigned.
public string Property1
{
get { return _field1; }
set
{
// assign the value first
_field1 = value;
// then call the property changed
OnPropertyChanged("Property1");
}
}