title: How to set index in DevExpress ComboBoxEdit?
body: <p>How to "Set" the <code>SelectedIndex</code> in DevExpress <code>ComboBoxEdit</code>? <br/>
  I tried both in <strong>XAML</strong> and in code behind, but the index was not set, it starts out with a blank item.</p>
  
  <p><strong>My XAML:</strong> [I can't see why this doesn't work, but it doesn't..]</p>
  
  <pre><code>&lt;dxb:BarEditItem.EditSettings&gt;
      &lt;dxe:ComboBoxEditSettings&gt;
          &lt;dxe:ComboBoxEditSettings.Items&gt;
              &lt;dxe:ComboBoxEditItem IsSelected="True"&gt;AAA&lt;/dxe:ComboBoxEditItem&gt;
              &lt;dxe:ComboBoxEditItem&gt;BBB&lt;/dxe:ComboBoxEditItem&gt;
              &lt;dxe:ComboBoxEditItem&gt;CCC&lt;/dxe:ComboBoxEditItem&gt;
          &lt;/dxe:ComboBoxEditSettings.Items&gt;
      &lt;/dxe:ComboBoxEditSettings&gt;
  &lt;/dxb:BarEditItem.EditSettings&gt;
  </code></pre>
  
  <p><strong>My C# code:</strong> <br/>[I'm getting the <strong>countStr</strong> correctly so I'm sure the <code>ComboBoxEdit</code> and the items are initialized and added ok, but <code>SelectedIndex</code> still don't set the index..]
  <br/>* also I do not want to use <code>EditValue</code> to set the value, I need to use an integer (<strong>Index</strong>) to set it.</p>
  
  <pre><code>private void Foo_LinkControlLoaded(object sender,
      DevExpress.Xpf.Bars.BarItemLinkControlLoadedEventArgs e)
  {
      BarEditItemLink link = (BarEditItemLink)sender;
      countStr = ((ComboBoxEdit)link.Editor).Items.Count.ToString();
      ((ComboBoxEdit)link.Editor).SelectedIndex = 2;
  }
  </code></pre>