title: How to get Selected Row of WPF Devexpress TreeList in .NET?
body: <p>I am new to Devexpress controls. I have added <code>TreeList</code> control on form an bind it using Entity. I want to get the selected column value i.e ID</p>
  
  <p>In .Xaml file:</p>
  
  <pre><code>&lt;dxg:TreeListControl Name="treeListContacts" ItemsSource="{Binding Data, Source={StaticResource EntityServerModeDataSource2}}" AutoPopulateColumns="True" HorizontalAlignment="Left" Margin="10,19,0,0" VerticalAlignment="Top" Height="317" Width="180" FocusableChanged="treeListContacts_FocusableChanged"&gt;
              &lt;dxg:TreeListControl.Columns&gt;
                  &lt;dxg:TreeListColumn FieldName="Company_ID" ReadOnly="True" Width="30" Visible="False"/&gt;
                  &lt;dxg:TreeListColumn FieldName="CompanyName" ReadOnly="True"/&gt;
              &lt;/dxg:TreeListControl.Columns&gt;
              &lt;dxg:TreeListControl.View&gt;
                  &lt;dxg:TreeListView ShowTotalSummary="True"/&gt;
              &lt;/dxg:TreeListControl.View&gt;
          &lt;/dxg:TreeListControl&gt;
  </code></pre>
  
  <p>Here, now i want to get the selected company id?
  Help Appreciated! Thanks!</p>