title: I'm retrieving a value for a combobox with custom class items but I can't make it show the item
body: <p>I wanted to have items and hidden values which I could call later so I used this <a href="https://stackoverflow.com/questions/3762981/hidden-id-with-combobox-items">Article</a> to create my custom items.</p>
  
  <p>But now that I'm calling one value I cannot make it show the proper item. The combobox stays null.</p>
  
  <pre><code>if (reader.HasRows)
  {
      reader.Read();
      namebox.Text = reader["c_Name"].ToString();
      lastbox.Text = reader["c_LastName"].ToString();
      genderbox.SelectedItem = reader["c_gender"].ToString();
  }
  </code></pre>
  
  <p>Here is what I add to my combobox and what I want to show accoring to what value I get from the reader</p>
  
  <pre><code> private void editcust_Load(object sender, EventArgs e)
          {
              genderbox.Items.Add(new ComboBoxItem("male", "1"));
              genderbox.Items.Add(new ComboBoxItem("female", "0"));
          }
  </code></pre>
  
  <p>Please let me know if I need to add more code or provide more information.
  I'm a junior developer so please excuse my terrible mistakes and bad formulation.</p>