title: How to get the DisplayMember value in the DrawItem event of a comboBox? C#
body: <p>Please consider the following:</p>
  
  <p>I populate my comboBox using the following method:</p>
  
  <pre><code>void populateComboBox()
  {
      comboBox1.DataSource = GetDataTableSource(); // some data table used as source
      comboBox1.DisplayMember = "name";            // string
      comboBox1.ValueMember = "id";                // id is an int
  
      // Suppose I have this data in my comboBox after populating it
      // 
      //
      // id (ValueMember) | name (DisplayMember)
      // -----------------------------------------
      //  1       | name1
      //  2       | name2
      //  3       | name3
  }
  </code></pre>
  
  <p>In <code>DrawItem</code> event, I want to get the value of the <code>DisplayMember</code> (name) of the comboBox and assign it to some variable.
  So far, I got this code and it seems not to work... Please have it corrected. Thanks in advance....</p>
  
  <pre><code>void comboBox1_DrawItem(object sender, DrawItemEventArgs e)
  {
      string name = ((System.Data.DataRowView)(comboBox1.SelectedValue = e.Index))["name"].ToString();
  
      // do something
      //  
  }
  </code></pre>