title: How can I find out if a combo box contains a value member?
body: <p>The situation is that I have 2 controls, a text box and a combo box. The user can select something in the combo box, it fills the text box with the value member, if the user types into the text box, I want to check if it exists in the combo box's values and then select the corresponding display member.</p>
  
  <p>The method I was expecting to be there was something like</p>
  
  <pre><code>if(cmb1.valueMembers.Contains(txt1.Text))
  </code></pre>
  
  <p>but I can't find anything like this, I also thought looping through them could find it? so I've got </p>
  
  <pre><code>foreach (System.Data.DataRowView row in cmb1.Items)
          {}
  </code></pre>
  
  <p>but can't find the value member anywhere in the row?</p>
  
  <p>Thanks</p>