This my Xaml code for combo box with data binding :
You could cast the SelectedItem property of the ComboBox to a CUSTOMER
object to get the currently selected item:
CUSTOMER selectedCustomer = C1.SelectedItem as CUSTOMER;
if(selectedCustomer != null)
MessageBox.Show(selectedCustomer.CUSTOMER_NAME);
To select an item you set the SelectedItem property to a CUSTOMER
object that is included in the ComboBox's ItemsSource:
C1.SelectedItem = C1.Items[0]; //selects the first customer (index = 0)
Or if you know the name or description of the customer:
string theName = "some customer name...";
C1.SelectedItem = C1.Items.OfType().FirstOrDefault(x => x.CUSTOMER_NAME == theName);