title: How to retrieve selected item's id from listbox which is bound to datatable?
body: <p>I have a listbox which I bound to <code>Datable</code> [<code>employee</code>] where listbox shows employee name.</p>
  
  <p>How can I get the selected item's <code>id</code> like <code>employee_id</code> from database?</p>
  
  <p>Here is my part if code</p>
  
  <p><strong>XAML-</strong></p>
  
  <pre><code>ListBox ItemsSource="{Binding}" DisplayMemberPath="employee_name" HorizontalAlignment="Left" Margin="16.362,108.171,0,44.541" Name="lstbxEmloyee" Width="333.603" SelectionChanged="lstbxEmployee_SelectionChanged" 
  </code></pre>
  
  <p><strong>.cs</strong></p>
  
  <pre><code>EmployeeData _employeeData = new EmployeeData();
  
  _employeeData.GetEmployeeName();
  
  lstbxEmloyee.ItemsSource = _employeeData._dataTable.DefaultView;
  </code></pre>
  
  <p>I want to fetch <code>employee_id</code> for selected <code>employee_name</code> from listbox</p>
  
  <p>please help me out </p>
  
  <p>and Thank u....</p>