title: How to set ComboBox/RepositoryItemComboBox datasource from a DataTable/TableAdapter?
body: <p>I am wondering how can I set <code>datasource</code> to a <code>ComboBox</code> in case I want to load data from database everytime my grid loads up.
  This is what I did for now (I hardcoded 3 items just to see is it working)</p>
  
  <pre><code> Dim riCombo As RepositoryItemComboBox = New RepositoryItemComboBox
  
   riCombo.Items.AddRange(New String() {"London", "Berlin", "Paris"})
  
   gridArticles.RepositoryItems.Add(riCombo)
   colArticles.ColumnEdit = riCombo
  </code></pre>
  
  <p>I am getting data from database throught DataTableAdapter, there I am writing methods which are triggering sql queries.</p>
  
  <p>After DIMITRY suggestions:</p>
  
  <pre><code> Dim riLookup As New RepositoryItemLookUpEdit()
          riLookup.DataSource = DataTableDobTableAdapter.FillDob(Me.DsOrders.DataTableDob)
          riLookup.ValueMember = "ID"
          riLookup.DisplayMember = "TITLE"
          riLookup.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup
          GridView1.Columns("CODE").ColumnEdit = riLookup
          GridView1.BestFitColumns()
  </code></pre>
  
  <p>But what I am getting here for column where valuesin dropdowns should be is next:</p>
  
  <p><a href="https://i.stack.imgur.com/eRXyj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eRXyj.png" alt="enter image description here"></a></p>
  
  <p>Thanks guys
  Cheers</p>