title: dataGrid2D nothing shown
body: <p>I want to bind some values from 2 dimensional array <code>int[,]</code> into grid. Reading <a href="https://stackoverflow.com/questions/5362124/two-way-binding-between-datagrid-and-an-array">Two way binding between DataGrid and an array</a> I download .dll and add reference. My code is:</p>
  
  <p>part of XAML:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;dg2d:DataGrid2D Name="dataGrid2D" ItemsSource2D="{Binding Data2D}" Margin="0,0,0,130"/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>and c# behind it: </p>
  
  <pre><code> public partial class MainWindow : Window
      {
          private int[,] _data2D;
          public int[,] Data2D
          {
              get { return _data2D; }
              set { _data2D = value; }
          }
          public MainWindow()
          {
              int[,] data2D = new int[5,5];
              for (int i = 0; i &lt; 5; i++)
              {
                  for (int j = 0; j &lt; 5; j++)
                  {
                      data2D[i, j] = 1;
                  }
              }
              _data2D = data2D
              dataGrid2D.DataContext = this;
          }
      }
  </code></pre>
  
  <p>I also read <a href="https://stackoverflow.com/questions/40262652/binding-2d-array-with-wpf-datagrid2d">Binding 2d array with WPF DataGrid2D</a> but I don't know how to connect it with my problem? how to connect MainWindow() with view? any help?</p>