title: Get index by value regarding combobox for win apps c#
body: <p>we can easily get index of combobox using <strong>FindString</strong> method</p>
  
  <pre><code>int index = cboCountryTwoCode.FindString(localJob.DeliveryCountryTwoCode.Trim());
  cboCountryTwoCode.SelectedIndex = index;
  </code></pre>
  
  <p>so i just need to know is there any way to get index of combobox just finding by value instead of finding by text. please let me know is there any similar. if anything not there then how to achieve my objective that get index of combobox just finding by value. thanks</p>
  
  <h2>this way i am populating my combo</h2>
  
  <pre><code>        cboCountryTwoCode.DataSource = Utility.LoadCountry();
          cboCountryTwoCode.DisplayMember = "CData";
          cboCountryTwoCode.ValueMember = "CValue";
  </code></pre>
  
  <p><strong>LoadCountry()</strong> will return datatable . thanks</p>