title: Binding entity framework query to Devexpress LookUpEdit and ComboBoxEdit
body: <p>I've a simple table with only one column <code>UrzadSkarbowyWojewodztwo</code> that I'm trying to attach <code>Entity Framework</code> query to ComboBoxEdit or LookUpEdit (preferably both for reference). Can somebody share a a way to do this considering that I don't want do it from GUI?</p>
  
  <p>I tried multiple ways and it's simply failing every time. I'm sure I'm missing something...  </p>
  
  <pre><code>using (var context = new EntityBazaCRM(Settings.sqlDataConnectionDetails))
          {
              IQueryable&lt;UrzedySkarboweWojewodztwa&gt; listaWojewodztw = from d in context.UrzedySkarboweWojewodztwas
                                                         select d;
  
              //lookUpEdit1.DataBindings.Add("EditValue", listaWojewodztw, "", true);
              lookUpEdit1.DataBindings.Add("EditValue", listaWojewodztw, "UrzadSkarbowyWojewodztwo", true);
              lookUpEdit1.Properties.DataSource = listaWojewodztw.ToList();
              lookUpEdit1.Properties.DisplayMember = "UrzadSkarbowyWojewodztwo";
              lookUpEdit1.Properties.ValueMember = "UrzadSkarbowyWojewodztwo";
  
              LookUpColumnInfo col = new LookUpColumnInfo("UrzadSkarbowyWojewodztwo", "Województwo", 100) { SortOrder = DevExpress.Data.ColumnSortOrder.Ascending };
              lookUpEdit1.Properties.Columns.Add(col);
  </code></pre>