title: The combobox displays system.data.datarowview
body: <p>I have a combobox in winform which gets data by calling a stored procedure in MySQL.</p>
  <h3>My stored proc:</h3>
  <pre><code>CREATE PROCEDURE `GetCourses`()
  BEGIN
  SELECT course_name FROM my_db.courses where group_id=1;
  END
  </code></pre>
  <p>Now the course names are bind with the Combobox(ComboBox2) as below - on selection of another Combobox(ComboBox1):</p>
  <pre><code>private void Form_Load(object sender, EventArgs e)
  {
    var connectionString = ConfigurationManager.ConnectionStrings[&quot;ConnectionString&quot;].ConnectionString;
    conn = new MySqlConnection(connectionString);
    conn.Open();
    MySqlCommand cmd1 = new MySqlCommand();
    cmd1.Connection = conn;
    cmd1.CommandType = CommandType.StoredProcedure;
    cmd1.CommandText = &quot;GetCourses&quot;;
    DataTable dt1 = new DataTable();
    MySqlDataAdapter adp1 = new MySqlDataAdapter(cmd1);
    adp1.Fill(dt1);
  }
  
  private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
  {
    if (comboBox1.SelectedIndex == 3)
    {
      comboBox2.ValueMember = &quot;course_name&quot;;
      comboBox2.DisplayMember = &quot;course_name&quot;;
      comboBox2.DataSource = dt1;
    }
  }
  </code></pre>
  <p>But when I run the form, the ComboBox is filled with the values as 'system.data.datarowview'</p>
  <p><a href="https://i.stack.imgur.com/P378Y.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P378Y.jpg" alt="Form" /></a></p>
  <p>Could anyone please help me with this.</p>
  <p>NOTE: I don't want to achieve this by using 'MySqlDataReader'</p>
  <p>Thanks in advance.</p>