title: WPF DataGrid showing empty double cells but correct column headers
body: <p>I am trying to populate a WPF datagrid but it's only showing the column headers and the content cells of the first(!) column. All other cells are empty:</p>
  
  <p><img src="https://i.stack.imgur.com/F1Dmc.png" alt="enter image description here"></p>
  
  <p>The DataGrid is defined like this:</p>
  
  <pre><code>&lt;DataGrid ItemsSource="{Binding Classifications, Mode=OneWay}" 
          AutoGenerateColumns="True" HeadersVisibility="Column" /&gt;                        
  </code></pre>
  
  <p>Classifications is defined in the code-behind file like this:</p>
  
  <pre><code>public DataView Classifications
  {
      get
      {
          return ClassificationDataTable.GetTable(myData).DefaultView
      }
  }
  </code></pre>
  
  <p>and finally this is my data generator:</p>
  
  <pre><code>public static class ClassificationDataTable
  {
      public static DataTable GetTable(List&lt;Classification&gt; classifications)
      {  
          DataTable table = new DataTable();
  
          // build columns
          table.Columns.Add("FruitPrototype", typeof (string));
          foreach (var featureComparison in classifications[0].FeatureComparisons)
              table.Columns.Add(featureComparison.FeatureName, typeof (double));
  
          // add rows
          foreach (var classification in classifications)
          {
              object[] values = new object[classification.FeatureComparisons.Count+1];
              values[0] = classification.FruitPrototype.FruitType;
              for (int i = 0; i &lt; classification.FeatureComparisons.Count; i++)                   
                  values[i + 1] = classification.FeatureComparisons[i].NormalizedDistance;
  
              table.Rows.Add(values);
          }
          return table;
      }
  }
  </code></pre>
  
  <p>I verified the binding and can confirm that the DefaultView of the DataTable is indeed bound to the ItemsSource of my DataGrid. Also, the double values that should be shown in the grid are != 0.</p>
  
  <p>What am I missing here?</p>