title: Binding TreeView to DataSet
body: <p>I have a dataset I created from a Oracle Query. 
  I get a datatable from a function and add it to dataset.</p>
  
  <p>now I try to bind to treeview to the ds.
  My code Behind:</p>
  
  <pre><code>private void init_TreeView()
          { 
  
             //TreeViewItem parent = PM_TreeView.Items.Add("Requirements");
             DataTable dt  =  DataBases.RunQuery();
             dt.TableName = "REQ";
             DataSet ds = new DataSet();
             ds.Tables.Add(dt);
             //ds.Relations.Add("rsParentChild", ds.Tables["REQ"].Columns["RQ_REQ_ID"], ds.Tables["REQ"].Columns["RQ_FATHER_ID"]);
             var dataSet = ds;
             _rootNodes = dataSet.Tables["REQ"].DefaultView;
             _rootNodes.RowFilter = "RQ_FATHER_ID = -1";
             this.DataContext = this;
           }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>private DataView _rootNodes;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public DataView RootNodes
  {
      get { return _rootNodes; }
  }
  </code></pre>
  
  <p>and my XAML:</p>
  
  <pre><code>&lt;TreeView x:Name="PM_TreeView" ItemsSource="{Binding RootNodes}" HorizontalAlignment="Left" Height="445" Margin="44.847,68.285,0,0" VerticalAlignment="Top" Width="320" Foreground="{x:Null}" BorderBrush="{x:Null}" Background="#FFBBB6B6" FontFamily="Segoe UI" FontSize="13.333"&gt;
              &lt;TreeView.ItemTemplate&gt;
                  &lt;HierarchicalDataTemplate ItemsSource="{Binding rsParentChild}"&gt;
                      &lt;TextBlock Text="{Binding NodeDescription}" /&gt;
                  &lt;/HierarchicalDataTemplate&gt;
              &lt;/TreeView.ItemTemplate&gt;
          &lt;/TreeView&gt;
  </code></pre>
  
  <p>my datatable is:</p>
  
  <pre><code>RQ_REQ_ID RQ_FATHER_ID RQ_REQ_NAME
  0         -1           REQ
  1          0           QC11
  </code></pre>
  
  <p>but I get nothing on the treeview :)</p>
  
  <p>10x in advance. </p>