title: Bind an ObservableCollection to a wpf datagrid : Grid stays empty
body: <p>I would like to bind an <code>ObservableCollection</code> to  wpf datagrid.
  My <code>ObservableCollection</code> is not empty, but, my datagrid stay empty :</p>
  
  <pre><code>public partial class Fenetre_EvtCode : Window
  {
      ObservableCollection&lt;EvtCode&gt; glb_ObservableEvtCode;
  
      public Fenetre_EvtCode()
      {
          InitializeComponent();
  
          EvtCode myEvt = new EvtCode();
          glb_ObservableEvtCode   =   myEvt.GetAllEvtCode();
      }
  }
  </code></pre>
  
  <p>Here is my xaml:</p>
  
  <pre><code>&lt;DataGrid Foreground="Aqua" 
            Name="myDataGridEvtCode" 
            AutoGenerateColumns="True"  
            HorizontalAlignment="Stretch" 
            Margin="0,0,0,0" 
            VerticalAlignment="Stretch" 
            Height="453" 
            ItemsSource="{Binding glb_ObservableEvtCode}" /&gt;
  </code></pre>
  
  <p>I repeat : I looked in debug, and my <code>ObservableCollection</code> is not empty.</p>
  
  <p>Anyone know why ma datagrid stay empty?</p>