title: How to add items to Combobox from Entity Framework?
body: <p>I have this code:</p>
  
  <pre><code>    private void FillCombobox()
      {
          using (InventoryEntities c = new InventoryEntities(Properties.Settings.Default.Connection))
          {
              List&lt;Customer&gt; usepurposes = c.Customers.ToList();
              DataTable dt = new DataTable();
              dt.Columns.Add("id");
              dt.Columns.Add("name");
              foreach (Customer usepurpose in usepurposes)
              {
                  dt.Rows.Add(usepurpose.id, usepurpose.name);
              }
              comboBox1.ValueMember = dt.Columns[0].ColumnName;
              comboBox1.DisplayMember = dt.Columns[1].ColumnName;
              comboBox1.DataSource = dt;
  
          }
      }
  </code></pre>
  
  <p>and I call this method in:</p>
  
  <pre><code>    private void frmBillIn_Load(object sender, EventArgs e)
      {
          FillCombobox();
      }
  </code></pre>
  
  <p>When I run my app, combobox will not display customers(items).</p>
  
  <p>just display <strong>Model.Customer</strong></p>
  
  <p>What is the problem??</p>
  
  <p>I tried many solution but non of them are working.</p>