title: Why does my DataGrid display no rows when there are items in its bound data source?
body: <p>When the main window - containing only my <code>DataGrid</code> shows, the <code>DataGrid</code> shows zero rows.</p>
  
  <p>This is what my grid looks like:</p>
  
  <pre><code>&lt;DataGrid                 
          AutoGenerateColumns="True"
          CanUserAddRows="False"
          CanUserReorderColumns="True"
          CanUserResizeColumns="True"
          DataContext="ClientListViewModel"
          ItemsSource="{Binding Source=RowItems}"&gt;
      &lt;DataGrid.Columns&gt;
          &lt;DataGridTextColumn Header="Given Name" Binding="{Binding GivenName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Family Name" Binding="{Binding FamilyName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Gender" Binding="{Binding Gender, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Date of Birth" Binding="{Binding DateOfBirth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"&gt;&lt;/DataGridTextColumn&gt;
      &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>
  
  <p>In the <code>Source={Binding Source=RowItems}</code> the source is a property, <code>RowItems</code> on my main view model, <code>ClientListViewModel</code>.</p>
  
  <p>The viewmodel has a <code>Read</code> method called in the ctor of <code>ClientListView</code>, my main view. When I debug this problem, I can see that the <code>RowItems</code> items source is correctly populated.</p>
  
  <p>My initialization of the main view, the <code>UserControl</code> containing the <code>DataGrid</code> in question, looks like this:</p>
  
  <pre><code>public MainWindow()
  {
      InitializeComponent();
      InitializeListView();
  }
  
  private void InitializeListView()
  {
      var model = new ClientListViewModel();
      model.Read();
      var view = new ClientListView();
      view.DataContext = model;
      Content = view;
  }
  </code></pre>
  
  <p>When I put a breakpoint straight after <code>model.Read();</code>, its <code>model.RowItems</code> property shows 12 items, yet the <code>DataGrid</code> shows no rows. </p>
  
  <p>Why is my <code>DataGrid</code> rendering zero rows?</p>