title: How to access repository combobox value in XtraGrid column
body: <p>I have a XtraGrid GridControl defined with 3 columns, 2 databound and one I have set to a <code>RepositoryItemComboBox</code>. The column is setup like:</p>
  
  <pre><code>this.gridColumn3.Caption = "Test";
  this.gridColumn3.FieldName = "test";
  this.gridColumn3.Name = "gridColumn3";
  this.gridColumn3.UnboundType = DevExpress.Data.UnboundColumnType.String;
  this.gridColumn3.Visible = true;
  this.gridColumn3.VisibleIndex = 2;
  </code></pre>
  
  <p>The <code>RepositoryItemComboBox</code> is created like:</p>
  
  <pre><code>RepositoryItemComboBox cbo = new RepositoryItemComboBox();
  
  cbo.Items.Add("1");
  cbo.Items.Add("2");
  cbo.Items.Add("3");
  cbo.Items.Add("4");
  cbo.Items.Add("5");
  cbo.Items.Add("6");
  cbo.Items.Add("7");
  
  gridView1.Columns[3].ColumnEdit = cbo;
  </code></pre>
  
  <p>When viewing the grid, the <code>combobox</code> displays exactly as I want it. This issue is when trying to retrieve the value selected in the <code>combobox</code>. When a <code>button</code>, outside of the grid, is pressed the <code>combobox</code> value should be processed. I use the following code:</p>
  
  <pre><code>for (int i = 0; i &lt; gridView1.DataRowCount; i++)
  {
      int ID = (int)gridView1.GetRowCellValue(i, "id");
      string Test = gridView1.GetRowCellValue(i, "test").ToString();
  
      ProcessCombo(ID, Test);
  }
  </code></pre>
  
  <p>In the above code <code>ID</code> is retrieved as expected, but <code>gridView1.GetRowCellValue(i, "test")</code> returns <code>null</code>. What could I have missed out? Is this even the right way to approach this?</p>