title: C# Fill combo box from SQL DataTable
body: <pre><code>DataTable _dt = new DataTable();
  
  using (SqlConnection _cs = new SqlConnection("Data Source=COMNAME; Initial Catalog=DATABASE; Integrated Security=True"))
  {
      string _query = "SELECT * FROM Doctor";
      SqlCommand _cmd = new SqlCommand(_query, _cs);
  
      using (SqlDataAdapter _da = new SqlDataAdapter(_cmd))
      {
          _da.Fill(_dt);
      }
  }
  cbDoctor.DataSource = _dt;
  foreach(DataRow _dr in _dt.Rows)
  {
      cbDoctor.Items.Add(_dr["name"].ToString());
  }
  </code></pre>
  
  <p>There was an Error... </p>
  
  <p>The result is <code>System.Data.DataRowView</code> instead of data from database..</p>