title: Set combobox's value member programmatically
body: <p>I've been looking around for this answer.  Checked here: <a href="https://stackoverflow.com/questions/5257016/how-to-set-a-combobox-value">How to set a combobox value</a> but I'm not sure if it applies to me (could be wrong, please correct me if I am).  I'm using VB.Net, VS2012 and I need to programmatically set the value member of a combobox that is databound.</p>
  
  <p>My code now is as follows (this is from within a loop assigning a bunch of controls values):</p>
  
  <pre><code>    cboCountry.SelectedValue = row.Item("CCCOUNTRY").ToString
  </code></pre>
  
  <p>This does not assign any selected value.  I have also tried:</p>
  
  <pre><code>    cboCountry.SelectedItem = cboCountry.FindString(row.Item("CCCOUNTRY").ToString)
  </code></pre>
  
  <p>But this does not work either.  For this instance:</p>
  
  <ol>
  <li>I have one combobox</li>
  <li>It has two values databound in it's valuemember properties, "US", and "CA"</li>
  <li>The row item that I'm assigning it is one of those values.</li>
  </ol>
  
  <p>Again, all I need to do is set the selectedvalue programmatically.  Any help greatly appreciated!</p>