title: Datagrid to ObservableCollection Binding Doesn't Update grid
body: <p>Please help me, I have no idea whats wrong. No matter what I try, the grid is just not updated (stays empty).</p>
  
  <p>I want the grid to be bound to an ObservableCollection, but not to genrate automatic cloumns, but to choose two Properties from the object called Product, which is the type this Collection holds.</p>
  
  <p>XAML:</p>
  
  <pre><code> &lt;DataGrid  x:Name="itemsGrid" ItemsSource="{Binding OrdersList}" AutoGenerateColumns="False" Style="{StaticResource GridStyle}"&gt;
       &lt;DataGrid.Columns&gt;
          &lt;DataGridTextColumn Binding="{Binding Path=Product.Amount}" Header="AMOUTN" /&gt;
          &lt;DataGridTextColumn Binding="{Binding Path=Product.Name}" Header="NAME"  /&gt;
       &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid &gt;
  </code></pre>
  
  <p>CODE:</p>
  
  <pre><code>  public partial class Orders : Window,INotifyPropertyChanged
      {
  
        ObservableCollection&lt;Product&gt; _ordersList = new ObservableCollection&lt;Product&gt;();
        public event PropertyChangedEventHandler PropertyChanged;
  
        private ObservableCollection&lt;Product&gt; OrdersList
      {
          get { return this._ordersList; }
  
          set { _ordersList = value; NotifyPropertyChanged("OrdersList"); }
      }
  
      private void addProduct(Product p)
      {
          OrdersList.Add(p);
          NotifyPropertyChanged("OrdersList");
      }
      private void removeProduct(Product p)
      {
          OrdersList.Remove(p);
          NotifyPropertyChanged("OrdersList");
      }
  
      protected void NotifyPropertyChanged(String propertyName)
      {
          if (PropertyChanged != null)
              PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
      }
  </code></pre>
  
  <p>}</p>