title: How to get Selected Value of DevExpress WPF ComboEdit binded with Entity?
body: <p>I am having a ComboEdit control in my WPF application which is binded by Entity named with 'Contacts'. now i want to ge the selected value of ComboEdit.</p>
  
  <pre><code>&lt;dxe:ComboBoxEdit Name="ddlFirstName" HorizontalAlignment="Left" Margin="125,24,0,0" VerticalAlignment="Top" Width="140" SelectedIndexChanged="ddlFirstName_SelectedIndexChanged"/&gt;
  
  protected void BindAllDropdown()
      {
          ddlFirstName.ItemsSource = BLL.GetAllContacts();
          ddlFirstName.DisplayMember = "FirstName";
          ddlFirstName.ValueMember = "ContactID";
  
  
          ddlLastName.ItemsSource = BLL.GetAllContacts();
          ddlLastName.DisplayMember = "LastName";
          ddlLastName.ValueMember = "ContactID";
  
  
      }
  </code></pre>
  
  <p>i am trying to get selected value on selected index change event using:</p>
  
  <pre><code>string contid = ddlFirstName.SelectedItem.ToString();
  </code></pre>
  
  <p>this returns whole entity so not able to get the selected value. how to get the selected value?</p>
  
  <p>Help appreciated!
  Thanks!</p>